Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
RemDelaporteMathurin committed Jun 29, 2023
1 parent fca935e commit e90b6ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion festim/generic_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,9 @@ def iterate(self):

# avoid t > final_time
next_time = self.t + float(self.dt.value)
if next_time > self.settings.final_time and not np.isclose(self.t, self.settings.final_time):
if next_time > self.settings.final_time and not np.isclose(
self.t, self.settings.final_time
):
self.dt.value.assign(self.settings.final_time - self.t)

def display_time(self):
Expand Down

0 comments on commit e90b6ab

Please sign in to comment.