Skip to content

Commit

Permalink
changed evolving conditions to update in a while loop in case chem ti…
Browse files Browse the repository at this point in the history
…me step is greater than time between evolving conditions
  • Loading branch information
alexjamesgarza committed Apr 4, 2024
1 parent 3e59536 commit c849c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/box_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def solve(self, path_to_output = None):
next_output_time += self.box_model_options.output_step_time

#iterates evolvings conditons if enough time has elapsed
if(next_conditions != None and next_conditions_time <= curr_time):
while(next_conditions != None and next_conditions_time <= curr_time):

#curr_conditions = next_conditions
curr_conditions.update_conditions(next_conditions)
Expand Down

0 comments on commit c849c6f

Please sign in to comment.