Electrolysis cell combined with fuel cell