Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

+Move array_global_min_max() and use it for Temperature & Salinity #683

Merged

Conversation

Hallberg-NOAA
Copy link
Member

This PR comprises two commits that first move the publicly visible routine array_global_min_max() from MOM_generic_tracer to MOM_spatial_means, and then optionally use this routine to determine the maximum and minimum values of temperature and salinity and the locations of their extrema and write them to stdout. The new runtime parameters WRITE_TRACER_MIN_MAX and WRITE_TRACER_MIN_MAX_LOC determine what is written, as the global reductions in array_global_min_max might be an unnecessary computational expense in some cases. All solutions are bitwise identical, but the location of a publicly visible routine has changed, there can be some changes to the output to stdout and there will be new entries in the MOM_parameter_doc.debugging files.

The commits in this PR include:

  • 2def99a61 +Add runtime parameter WRITE_TRACER_MIN_MAX
  • 644f101e2 +Move array_global_min_max to MOM_spatial_means

@Hallberg-NOAA Hallberg-NOAA added enhancement New feature or request Parameter change Input parameter changes (addition, removal, or description) labels Jul 10, 2024
  Moved the publicly visible routine array_global_min_max to MOM_spatial_means
from MOM_generic_tracer, along with the private supporting function ijk_loc,
without any changes to the code itself.  This was done because this routine now
gives useful debugging information that can be useful outside of the generic
tracer module.  All answers are bitwise identical, but the module use statements
for array_global_min_max will need to be updated.
  Added the new runtime parameters WRITE_TRACER_MIN_MAX and
WRITE_TRACER_MIN_MAX_LOC to the MOM_sum_output module to control whether the
maximum and minimum values of temperature, salinity and some tracers are
periodically written to stdout, perhaps with their locations, as determined by
array_global_min_max.  These can be expensive global reductions, so by default
these are set to false.  All solutions are bitwise identical, but there can be
some changes to the output to stdout and there will be new entries in the
MOM_parameter_doc.debugging files.
@Hallberg-NOAA Hallberg-NOAA force-pushed the use_array_global_min_max branch from 2def99a to 7e39421 Compare August 6, 2024 21:17
@Hallberg-NOAA
Copy link
Member Author

This PR has passed pipeline testing at https://gitlab.gfdl.noaa.gov/ogrp/mom6ci/MOM6/-/pipelines/24384.

@Hallberg-NOAA Hallberg-NOAA merged commit 9b45087 into NOAA-GFDL:dev/gfdl Aug 10, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Parameter change Input parameter changes (addition, removal, or description)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants