Index: wflow-py/wflow/wflow_hbv.py =================================================================== diff -u -r82f9be039caa728844eeb721c887b2d84fa196cc -r77cca294ac6e8e18c407e9ea699b7825633e81d9 --- wflow-py/wflow/wflow_hbv.py (.../wflow_hbv.py) (revision 82f9be039caa728844eeb721c887b2d84fa196cc) +++ wflow-py/wflow/wflow_hbv.py (.../wflow_hbv.py) (revision 77cca294ac6e8e18c407e9ea699b7825633e81d9) @@ -669,7 +669,7 @@ self.thestep = self.thestep + 1 self.wf_updateparameters() # read forcing an dynamic parameters - self.Precipitation = max(0,0,self.Precipitation) + self.Precipitation = max(0.0,self.Precipitation) #self.Precipitation=cover(self.wf_readmap(self.P_mapstack,0.0),0.0) * self.Pcorr #self.PotEvaporation=cover(self.wf_readmap(self.PET_mapstack,0.0),0.0) Index: wflow-py/wflow/wflow_sbm.py =================================================================== diff -u -r82f9be039caa728844eeb721c887b2d84fa196cc -r77cca294ac6e8e18c407e9ea699b7825633e81d9 --- wflow-py/wflow/wflow_sbm.py (.../wflow_sbm.py) (revision 82f9be039caa728844eeb721c887b2d84fa196cc) +++ wflow-py/wflow/wflow_sbm.py (.../wflow_sbm.py) (revision 77cca294ac6e8e18c407e9ea699b7825633e81d9) @@ -922,7 +922,7 @@ # Read forcing data and dynamic parameters self.wf_updateparameters() - self.Precipitation = max(0,0,self.Precipitation) + self.Precipitation = max(0.0,self.Precipitation) if hasattr(self,"LAI"):