Reservoir

This element is treated in subroutine reservoir.f. In forward mode the value of hup can be negative or positive. If it is negative no frontwater curve was calculated and a backwater curve has to be determined (hdo is set to -1). If it is positive a backwater curve was calculated and hdo is calculated as the height after a jump using subroutine hns.f.

The further calculation depends on the value of hdo: