Skip to content

Commit

Permalink
Message now displays tiny timesteps when solving
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriele-ferrero committed Oct 5, 2023
1 parent 2847817 commit 067dd67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions festim/generic_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,10 @@ def iterate(self):
def display_time(self):
"""Displays the current time"""
simulation_percentage = round(self.t / self.settings.final_time * 100, 2)
simulation_time = round(self.t, 1)
simulation_time = round(self.t, 1)
elapsed_time = round(self.timer.elapsed()[0], 1)
msg = "{:.1f} % ".format(simulation_percentage)
msg += "{:.1e} s".format(simulation_time)
msg += "{:.1e} s".format(self.t)
msg += " Ellapsed time so far: {:.1f} s".format(elapsed_time)
if not np.isclose(self.t, self.settings.final_time) and self.log_level == 40:
print(msg, end="\r")
Expand Down

0 comments on commit 067dd67

Please sign in to comment.