MOM_check_scaling module reference

This module is used to check the dimensional scaling factors used by the MOM6 ocean model

Functions/Subroutines

check_MOM6_scaling_factors

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.

compose_dimension_list

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.

add_scaling

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
Callees of mom_check_scaling::check_mom6_scaling_factors calls cluster_mom_check_scaling MOM_check_scaling cluster_mom_unique_scales MOM_unique_scales mom_check_scaling::check_mom6_scaling_factors check_MOM6_scaling_factors mom_check_scaling::compose_dimension_list compose_dimension_list [private/internal] mom_check_scaling::check_mom6_scaling_factors->mom_check_scaling::compose_dimension_list mom_unique_scales::check_scaling_uniqueness check_scaling_uniqueness mom_check_scaling::check_mom6_scaling_factors->mom_unique_scales::check_scaling_uniqueness mom_unique_scales::scales_to_powers scales_to_powers mom_check_scaling::check_mom6_scaling_factors->mom_unique_scales::scales_to_powers
Text view
Callers call graph
Callers of mom_check_scaling::check_mom6_scaling_factors calls cluster_mom MOM cluster_mom_check_scaling MOM_check_scaling mom::initialize_mom initialize_MOM mom_check_scaling::check_mom6_scaling_factors check_MOM6_scaling_factors mom::initialize_mom->mom_check_scaling::check_mom6_scaling_factors
Text view
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
Callees of mom_check_scaling::compose_dimension_list calls cluster_mom_check_scaling MOM_check_scaling mom_check_scaling::add_scaling add_scaling [private/internal] mom_check_scaling::compose_dimension_list compose_dimension_list [private/internal] mom_check_scaling::compose_dimension_list->mom_check_scaling::add_scaling
Text view
Callers call graph
Callers of mom_check_scaling::compose_dimension_list calls cluster_mom_check_scaling MOM_check_scaling mom_check_scaling::check_mom6_scaling_factors check_MOM6_scaling_factors mom_check_scaling::compose_dimension_list compose_dimension_list [private/internal] mom_check_scaling::check_mom6_scaling_factors->mom_check_scaling::compose_dimension_list
Text view
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.

Callees call graph
Callees of mom_check_scaling::add_scaling calls cluster_mom_check_scaling MOM_check_scaling cluster_mom_error_handler MOM_error_handler mom_check_scaling::add_scaling add_scaling [private/internal] mom_error_handler::mom_mesg MOM_mesg mom_check_scaling::add_scaling->mom_error_handler::mom_mesg
Text view
Callers call graph
Callers of mom_check_scaling::add_scaling calls cluster_mom_check_scaling MOM_check_scaling mom_check_scaling::add_scaling add_scaling [private/internal] mom_check_scaling::compose_dimension_list compose_dimension_list [private/internal] mom_check_scaling::compose_dimension_list->mom_check_scaling::add_scaling
Text view
API generated with Flint · Rendered from reStructuredText