From 067dd673a57dd07bc141054491d920088b3c8c80 Mon Sep 17 00:00:00 2001 From: gabriele-ferrero Date: Thu, 5 Oct 2023 10:42:32 -0400 Subject: [PATCH] Message now displays tiny timesteps when solving --- festim/generic_simulation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/festim/generic_simulation.py b/festim/generic_simulation.py index a4e4efd30..d345bbd9e 100644 --- a/festim/generic_simulation.py +++ b/festim/generic_simulation.py @@ -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")