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. |
Detailed Description¶
This module is used to check the dimensional scaling factors used by the MOM6 ocean model.
Function/Subroutine Documentation¶
-
subroutine
mom_check_scaling/
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
- Call to:
mom_unique_scales::check_scaling_uniqueness
compose_dimension_list
mom_unique_scales::scales_to_powers
- Called from:
-
subroutine
mom_check_scaling/
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.
- Call to:
- Called from:
-
subroutine
mom_check_scaling/
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.
- Call to:
- Called from: