Skip to content

Commit

Permalink
fix SetOfNumericalSchemes.integrate time bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Yann Büchau committed May 5, 2017
1 parent efdb51c commit 978f19c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions numericalmodel/numericalmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ def integrate(self, final_time):
start_time = self.model_time,
final_time = final_time,
)
self.model_time = final_time
self.logger.info("end of integration")

def run_interactively(self): # pragma: no cover
Expand Down
2 changes: 1 addition & 1 deletion numericalmodel/numericalschemes.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ def integrate(self, start_time, final_time):
scheme_time = current_time
varname = plan_step[0] # variable name
scheme = self[varname] # get scheme
timesteps = np.asarray( plan_step[1] ) * biggest_timestep
timesteps = np.asarray( plan_step[1] ) * big_timestep
# self.logger.debug("timesteps: {}".format(timesteps))
for ts in timesteps: # loop over all timesteps
until_time = current_time + ts
Expand Down

0 comments on commit 978f19c

Please sign in to comment.