Index: wflow-py/wflow/wflow_bmi.py =================================================================== diff -u -ra1cd1f2b2dc89f358db98aa60f00a37bf82ce6a9 -rab85b6c192925e2ef6dba0e76bcd70a00066088f --- wflow-py/wflow/wflow_bmi.py (.../wflow_bmi.py) (revision a1cd1f2b2dc89f358db98aa60f00a37bf82ce6a9) +++ wflow-py/wflow/wflow_bmi.py (.../wflow_bmi.py) (revision ab85b6c192925e2ef6dba0e76bcd70a00066088f) @@ -77,12 +77,12 @@ Propagate the model one timestep? """ #curstep = self.dynModel.wf_ - if dt == -1: + if dt != -1: self.dynModel._runDynamic(self.currenttimestep, self.currenttimestep) self.currenttimestep = self.currenttimestep + 1 else: nrsteps = int(dt/self.dynModel.timestepsecs) - self.dynModel._runDynamic(self.currenttimestep, self.currenttimestep + nrsteps -1) + self.dynModel._runDynamic(self.currenttimestep, self.currenttimestep + nrsteps) self.currenttimestep = self.currenttimestep + nrsteps def get_time_units(self): @@ -115,7 +115,10 @@ """ npmap = self.dynModel.wf_supplyMapAsNumpy(name) - return str(npmap.dtype) + if hasattr(npmap,'dtype'): + return str(npmap.dtype) + else: + return None def get_var_rank(self, name): """ @@ -424,7 +427,8 @@ timespan = time - curtime nrsteps = int(timespan/self.dynModel.timestepsecs) - self.dynModel._runDynamic(self.currenttimestep, self.currenttimestep + nrsteps -1) + + self.dynModel._runDynamic(self.currenttimestep, self.currenttimestep + nrsteps) self.currenttimestep = self.currenttimestep + nrsteps def update_frac(self, time_frac): @@ -514,7 +518,10 @@ """ npmap = self.dynModel.wf_supplyMapAsNumpy(long_var_name) - return str(npmap.dtype) + if hasattr(npmap,'dtype'): + return str(npmap.dtype) + else: + return None def get_var_rank(self, long_var_name): """