+Move array_global_min_max() and use it for Temperature & Salinity #683
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 parametersWRITE_TRACER_MIN_MAX
andWRITE_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: