Index: wflow-py/wflow/wflow_routing.py =================================================================== diff -u -r66b81b5c1aa15650579e748852d60ec0d0e40b7a -rfb4c96a491f37f94570d811301e74bd91819d8a3 --- wflow-py/wflow/wflow_routing.py (.../wflow_routing.py) (revision 66b81b5c1aa15650579e748852d60ec0d0e40b7a) +++ wflow-py/wflow/wflow_routing.py (.../wflow_routing.py) (revision fb4c96a491f37f94570d811301e74bd91819d8a3) @@ -31,10 +31,10 @@ -X: save state at the end of the run over the initial conditions at the start - -T: Set last timestep + -T: Set end time of the run: yyyy-mm-dd hh:mm:ss + + -S: Set start time of the run: yyyy-mm-dd hh:mm:ss - -S: Set the start timestep (default = 1) - -s: Set the model timesteps in seconds -I: re-initialize the initial model conditions with default @@ -736,8 +736,6 @@ if o == '-c': configfile = a if o == '-L': LogFileName = a if o == '-s': timestepsecs = int(a) - if o == '-T': _lastTimeStep = int(a) - if o == '-S': _firstTimeStep = int(a) if o == '-h': usage() if o == '-f': _NoOverWrite = 0 if o == '-l': exec "loglevel = logging." + a @@ -778,6 +776,10 @@ left = a.split('=')[0] right = a.split('=')[1] configset(myModel.config,'variable_change_timestep',left,right,overwrite=True) + if o == '-T': + configset(myModel.config, 'run', 'endtime', a, overwrite=True) + if o == '-S': + configset(myModel.config, 'run', 'starttime', a, overwrite=True) dynModelFw.setupFramework() dynModelFw._runInitial()