Index: wflow-py/wflow/wflow_hbv.py =================================================================== diff -u -r210a8f89dcdbdf34d06ab44039da2bac7119fe41 -rf2aa08320939a159df9d124f13d5af03a1df68d7 --- wflow-py/wflow/wflow_hbv.py (.../wflow_hbv.py) (revision 210a8f89dcdbdf34d06ab44039da2bac7119fe41) +++ wflow-py/wflow/wflow_hbv.py (.../wflow_hbv.py) (revision f2aa08320939a159df9d124f13d5af03a1df68d7) @@ -740,7 +740,9 @@ # I nthe origal HBV code RestEvap = max(0.0,self.PotEvaporation-IntEvap) - SoilEvap=ifthenelse(self.SoilMoisture > self.Treshold,RestEvap,min(RestEvap,self.PotEvaporation*(self.SoilMoisture/self.Treshold))) #: soil evapotranspiration + SoilEvap=ifthenelse(self.SoilMoisture > self.Treshold,min(self.SoilMoisture,RestEvap),\ + min(self.SoilMoisture,min(RestEvap,self.PotEvaporation*(self.SoilMoisture/self.Treshold)))) + #: soil evapotranspiration self.SoilMoisture=self.SoilMoisture-SoilEvap #evaporation from soil moisture storage