MOM_check_scaling module reference
This module is used to check the dimensional scaling factors used by the MOM6 ocean model
Functions/Subroutines
Evaluate whether the dimensional scaling factors provide unique tests for all of the combinations of dimensions that are used in MOM6 (or perhaps widely used), and if they are not unique, explore whether another combination of scaling factors can be found that is unique or has less common cases with coinciding scaling. |
|
This routine composes a list of the commonly used dimensional scaling factors in the MOM6 code, along with weights reflecting the frequency of their occurrence in the MOM6 code or other considerations of how likely the variables are be used. |
|
Augment the count the valid unit descriptions, and add the provided description and its weight to the end of the list if that list is allocated. |
Functions/Subroutine Documentation
- subroutine check_MOM6_scaling_factors(GV, US)
Evaluate whether the dimensional scaling factors provide unique tests for all of the combinations of dimensions that are used in MOM6 (or perhaps widely used), and if they are not unique, explore whether another combination of scaling factors can be found that is unique or has less common cases with coinciding scaling.
- Parameters
GV
The container for vertical grid data
US [in]
A dimensional unit scaling type
Callees call graph
- subroutine compose_dimension_list(ns, des, wts)
This routine composes a list of the commonly used dimensional scaling factors in the MOM6 code, along with weights reflecting the frequency of their occurrence in the MOM6 code or other considerations of how likely the variables are be used.
- Parameters
ns [out]
The running sum of valid descriptions
des [inout]
The unit descriptions that have been converted
wts [inout]
A list of the integer weights for each scaling factor, perhaps the number of times it occurs in the MOM6 code.
Callees call graph
Callers call graph
- subroutine add_scaling(ns, descs, wts, scaling, weight)
Augment the count the valid unit descriptions, and add the provided description and its weight to the end of the list if that list is allocated.
- Parameters
ns [inout]
The running sum of valid descriptions.
descs [inout]
The unit descriptions that have been converted
wts [inout]
A list of the integers for each scaling
scaling [in]
The unit description that will be converted
weight [in]
An optional weight or occurrence count for this unit description, 1 by default.