Skip to content

Commit

Permalink
Print the max. temperature during dynamic adjustment
Browse files Browse the repository at this point in the history
We want to do this as a sanity check even if it is below the threshold
that will raise an error.
  • Loading branch information
xylar committed May 6, 2024
1 parent 9c93fdb commit a54f559
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def validate(self):
and timers
"""
config = self.config
logger = self.logger
variables = ['temperature', 'salinity', 'layerThickness',
'normalVelocity']

Expand All @@ -137,6 +138,9 @@ def validate(self):
f'Max of {var} > allowed threshold: '
f'{max_in_global_stats} > {max_value} '
f'in {filename}')
logger.info(f'As desired, max of {var}: '
f'{max_in_global_stats} <= {max_value} in\n'
f' {filename}')

def _add_step(self, step_name, options, get_dt_from_min_res,
time_integrator, yaml_filename, start_time,
Expand Down

0 comments on commit a54f559

Please sign in to comment.