An electrolysis stack for an electyrolyzer is electrically subdivided into a plurality of segments, each segment including a specific number of electrolysis cells. The electrolysis stack further has switches adapted for electrically short circuiting the segments of the electrolysis stack.