Skip to content

Commit

Permalink
Print fewer decimal places in timestep output
Browse files Browse the repository at this point in the history
  • Loading branch information
JDBetteridge committed Aug 29, 2023
1 parent 525d463 commit 30b8f5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gusto/timeloop.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def run(self, t, tmax, pick_up=False):

# Time loop
while float(self.t) < tmax - 0.5*float(self.dt):
logger.info(f'at start of timestep, t={float(self.t)}, dt={float(self.dt)}')
logger.info(f'at start of timestep, t={float(self.t):.5f}, dt={float(self.dt):.5f}')

self.x.update()

Expand All @@ -188,7 +188,7 @@ def run(self, t, tmax, pick_up=False):
if self.io.output.checkpoint and self.io.output.checkpoint_method == 'dumbcheckpoint':
self.io.chkpt.close()

logger.info(f'TIMELOOP complete. t={float(self.t)}, tmax={tmax}')
logger.info(f'TIMELOOP complete. t={float(self.t):.5f}, {tmax=:.5f}')

def set_reference_profiles(self, reference_profiles):
"""
Expand Down

0 comments on commit 30b8f5d

Please sign in to comment.