Index: wflow-py/wflow/wflow_bmi.py =================================================================== diff -u -r27b10199de6d48227666b04d4e0dea23316c83cf -rdd5b50956ea34f32d2a14af8eab110e206f22927 --- wflow-py/wflow/wflow_bmi.py (.../wflow_bmi.py) (revision 27b10199de6d48227666b04d4e0dea23316c83cf) +++ wflow-py/wflow/wflow_bmi.py (.../wflow_bmi.py) (revision dd5b50956ea34f32d2a14af8eab110e206f22927) @@ -85,18 +85,18 @@ """ self.dynModel._runSuspend() self.dynModel._wf_shutdown() - self.bmilogger.debug("finalize: shutting doen bmi") + self.bmilogger.debug("finalize: shutting done bmi") def update(self, dt): """ Return type string, compatible with numpy. - Propagate the model one timestep? + Propagate the model dt timesteps or ( if dt == -1) to the end of the model run """ # TODO: fix dt = -1 problem, what do we want here? #curstep = self.dynModel.wf_ if dt != -1: - self.dynModel._runDynamic(self.currenttimestep, self.currenttimestep) - self.currenttimestep = self.currenttimestep + 1 + self.dynModel._runDynamic(self.currenttimestep, self.currenttimestep + dt) + self.currenttimestep = self.currenttimestep + dt else: nrsteps = int(dt/self.dynModel.timestepsecs) self.dynModel._runDynamic(self.currenttimestep, self.currenttimestep + nrsteps)