created KW Lamnitz with loop

This commit is contained in:
Brantegger Georg
2023-02-09 10:24:29 +01:00
parent 8928d48428
commit 32e16c08e8
5 changed files with 1058 additions and 6 deletions

View File

@@ -225,8 +225,8 @@ class Ausgleichsbecken_class:
delta_level = net_flux*timestep/self.area
level_new = (self.level+delta_level)
# raise exception error if level in reservoir falls below 0.01 ######################### has to be commented out if used in loop
if level_new < 0.01:
raise Exception('Reservoir ran emtpy')
# if level_new < 0.01:
# raise Exception('Reservoir ran emtpy')
# set flag is necessary because update_level() is used to get a halfstep value in the time evoultion
if set_flag == True:
self.set_level(level_new,display_warning=False)