coord_hycom module reference

Regrid columns for the HyCOM coordinate

Data Types

hycom_CS

Control structure containing required parameters for the HyCOM coordinate

Functions/Subroutines

init_coord_hycom

Initialise a hycom_CS with pointers to parameters

init_3d_coord_hycom

Initialise a hycom_CS with pointers to parameters

end_coord_hycom

This subroutine deallocates memory in the control structure for the coord_hycom module

set_hycom_params

This subroutine can be used to set the parameters for the coord_hycom module

build_hycom1_column

Build a HyCOM coordinate column

build_hycom1_target_anomaly

Calculate interface density anomaly w.r.t. the target.

Type Documentation

type, public :: hycom_CS

Control structure containing required parameters for the HyCOM coordinate

Parameters
  • nk

    Nominal near-surface resolution [Z ~> m]

  • coordinateResolution

    Nominal density of interfaces [R ~> kg m-3]

  • target_density

    Maximum depths of interfaces [H ~> m or kg m-2]

  • max_interface_depths

    Maximum thicknesses of layers [H ~> m or kg m-2]

  • max_layer_thickness

    If true, an interface only moves if it improves the density fit

  • only_improves

    If true, use 3-D control fields

  • use_3d

    Nominal density of interfaces [R ~> kg m-3]

  • target_density_3d

    Nominal near-surface resolution [Z ~> m]

  • coordinateResolution_3d

    Interpolation control structure

Functions/Subroutine Documentation

subroutine init_coord_hycom(CS, nk, coordinateResolution, target_density, interp_CS)

Initialise a hycom_CS with pointers to parameters

Parameters
  • CS

    Unassociated pointer to hold the control structure

  • nk [in]

    Number of layers in generated grid

  • coordinateResolution [in]

    Nominal near-surface resolution [Z ~> m]

  • target_density [in]

    Interface target densities [R ~> kg m-3]

  • interp_CS [in]

    Controls for interpolation

Callees call graph
Callees of coord_hycom::init_coord_hycom calls cluster_coord_hycom coord_hycom cluster_mom_error_handler MOM_error_handler cluster_mom_error_infra MOM_error_infra coord_hycom::init_coord_hycom init_coord_hycom mom_error_handler::mom_error MOM_error coord_hycom::init_coord_hycom->mom_error_handler::mom_error mom_error_infra::is_root_pe is_root_pe coord_hycom::init_coord_hycom->mom_error_infra::is_root_pe
Text view
Callers call graph
Callers of coord_hycom::init_coord_hycom calls cluster_coord_hycom coord_hycom cluster_mom_regridding MOM_regridding coord_hycom::init_coord_hycom init_coord_hycom mom_regridding::initcoord initCoord [private/internal] mom_regridding::initcoord->coord_hycom::init_coord_hycom
Text view
subroutine init_3d_coord_hycom(CS, G, nk, coordinateResolution, target_density, interp_CS)

Initialise a hycom_CS with pointers to parameters

Parameters
  • CS

    Unassociated pointer to hold the control structure

  • G [in]

    Ocean grid structure

  • nk [in]

    Number of layers in generated grid

  • coordinateResolution [in]

    Nominal near-surface resolution [Z ~> m]

  • target_density [in]

    Interface target densities [R ~> kg m-3]

  • interp_CS [in]

    Controls for interpolation

Callees call graph
Callees of coord_hycom::init_3d_coord_hycom calls cluster_coord_hycom coord_hycom cluster_mom_error_handler MOM_error_handler cluster_mom_error_infra MOM_error_infra coord_hycom::init_3d_coord_hycom init_3d_coord_hycom mom_error_handler::mom_error MOM_error coord_hycom::init_3d_coord_hycom->mom_error_handler::mom_error mom_error_infra::is_root_pe is_root_pe coord_hycom::init_3d_coord_hycom->mom_error_infra::is_root_pe
Text view
Callers call graph
Callers of coord_hycom::init_3d_coord_hycom calls cluster_coord_hycom coord_hycom cluster_mom_regridding MOM_regridding coord_hycom::init_3d_coord_hycom init_3d_coord_hycom mom_regridding::initcoord initCoord [private/internal] mom_regridding::initcoord->coord_hycom::init_3d_coord_hycom
Text view
subroutine end_coord_hycom(CS)

This subroutine deallocates memory in the control structure for the coord_hycom module

Parameters
  • CS

    Coordinate control structure

Callers call graph
Callers of coord_hycom::end_coord_hycom calls cluster_coord_hycom coord_hycom cluster_mom_regridding MOM_regridding coord_hycom::end_coord_hycom end_coord_hycom mom_regridding::end_regridding end_regridding mom_regridding::end_regridding->coord_hycom::end_coord_hycom
Text view
subroutine set_hycom_params(CS, max_interface_depths, max_layer_thickness, only_improves, interp_CS)

This subroutine can be used to set the parameters for the coord_hycom module

Parameters
  • CS

    Coordinate control structure

  • max_interface_depths [in]

    Maximum depths of interfaces [H ~> m or kg m-2]

  • max_layer_thickness [in]

    Maximum thicknesses of layers [H ~> m or kg m-2]

  • only_improves [in]

    If true, an interface only moves if it improves the density fit

  • interp_CS [in]

    Controls for interpolation

Callees call graph
Callees of coord_hycom::set_hycom_params calls cluster_coord_hycom coord_hycom cluster_mom_error_handler MOM_error_handler coord_hycom::set_hycom_params set_hycom_params mom_error_handler::mom_error MOM_error coord_hycom::set_hycom_params->mom_error_handler::mom_error
Text view
Callers call graph
Callers of coord_hycom::set_hycom_params calls cluster_coord_hycom coord_hycom cluster_mom_regridding MOM_regridding coord_hycom::set_hycom_params set_hycom_params mom_regridding::initialize_regridding initialize_regridding mom_regridding::initialize_regridding->coord_hycom::set_hycom_params mom_regridding::set_regrid_max_depths set_regrid_max_depths mom_regridding::set_regrid_max_depths->coord_hycom::set_hycom_params mom_regridding::set_regrid_max_thickness set_regrid_max_thickness mom_regridding::set_regrid_max_thickness->coord_hycom::set_hycom_params mom_regridding::set_regrid_params set_regrid_params mom_regridding::set_regrid_params->coord_hycom::set_hycom_params
Text view
subroutine build_hycom1_column(CS, remapCS, eqn_of_state, nz, ix, jy, depth, h, T, S, p_col, z_col, z_col_new, zScale, h_neglect, h_neglect_edge)

Build a HyCOM coordinate column

Parameters
  • CS [in]

    Coordinate control structure

  • remapCS [in]

    Remapping parameters and options

  • eqn_of_state [in]

    Equation of state structure

  • nz [in]

    Number of levels

  • ix [in]

    x direction array index

  • jy [in]

    y direction array index

  • depth [in]

    Depth of ocean bottom (positive [H ~> m or kg m-2])

  • T [in]

    Temperature of column [C ~> degC]

  • S [in]

    Salinity of column [S ~> ppt]

  • h [in]

    Layer thicknesses [H ~> m or kg m-2]

  • p_col [in]

    Layer pressure [R L2 T-2 ~> Pa]

  • z_col [in]

    Interface positions relative to the surface [H ~> m or kg m-2]

  • z_col_new [inout]

    Absolute positions of interfaces [H ~> m or kg m-2]

  • zScale [in]

    Scaling factor from the input coordinate thicknesses in [Z ~> m] to desired units for zInterface, perhaps GV%Z_to_H in which case this has units of [H Z-1 ~> nondim or kg m-3]

  • h_neglect [in]

    A negligibly small width for the purpose of cell reconstruction [H ~> m or kg m-2]

  • h_neglect_edge [in]

    A negligibly small width for the purpose of edge value calculation [H ~> m or kg m-2]

Callees call graph
Callees of coord_hycom::build_hycom1_column calls cluster_coord_hycom coord_hycom cluster_mom_eos MOM_EOS cluster_mom_remapping MOM_remapping cluster_regrid_interp regrid_interp coord_hycom::build_hycom1_column build_hycom1_column coord_hycom::build_hycom1_target_anomaly build_hycom1_target_anomaly [private/internal] coord_hycom::build_hycom1_column->coord_hycom::build_hycom1_target_anomaly mom_eos::interface::calculate_density calculate_density (interface) coord_hycom::build_hycom1_column->mom_eos::interface::calculate_density mom_remapping::remapping_core_h remapping_core_h coord_hycom::build_hycom1_column->mom_remapping::remapping_core_h regrid_interp::build_and_interpolate_grid build_and_interpolate_grid coord_hycom::build_hycom1_column->regrid_interp::build_and_interpolate_grid
Text view
Callers call graph
Callers of coord_hycom::build_hycom1_column calls cluster_coord_hycom coord_hycom cluster_mom_regridding MOM_regridding coord_hycom::build_hycom1_column build_hycom1_column mom_regridding::build_grid_hycom1 build_grid_HyCOM1 [private/internal] mom_regridding::build_grid_hycom1->coord_hycom::build_hycom1_column
Text view
subroutine build_hycom1_target_anomaly(CS, remapCS, eqn_of_state, nz, ix, jy, depth, h, T, S, p_col, R, RiAnom, h_neglect, h_neglect_edge)

Calculate interface density anomaly w.r.t. the target.

Parameters
  • CS [in]

    Coordinate control structure

  • remapCS [in]

    Remapping parameters and options

  • eqn_of_state [in]

    Equation of state structure

  • nz [in]

    Number of levels

  • ix [in]

    x direction array index

  • jy [in]

    y direction array index

  • depth [in]

    Depth of ocean bottom (positive [H ~> m or kg m-2])

  • T [in]

    Temperature of column [C ~> degC]

  • S [in]

    Salinity of column [S ~> ppt]

  • h [in]

    Layer thicknesses [H ~> m or kg m-2]

  • p_col [in]

    Layer pressure [R L2 T-2 ~> Pa]

  • R [out]

    Layer density [R ~> kg m-3]

  • RiAnom [out]

    The interface density anomaly w.r.t. the interface target densities [R ~> kg m-3]

  • h_neglect [in]

    A negligibly small width for the purpose of cell reconstruction [H ~> m or kg m-2]

  • h_neglect_edge [in]

    A negligibly small width for the purpose of edge value calculation [H ~> m or kg m-2]

Callees call graph
Callees of coord_hycom::build_hycom1_target_anomaly calls cluster_coord_hycom coord_hycom cluster_mom_eos MOM_EOS cluster_regrid_interp regrid_interp coord_hycom::build_hycom1_target_anomaly build_hycom1_target_anomaly [private/internal] mom_eos::interface::calculate_density calculate_density (interface) coord_hycom::build_hycom1_target_anomaly->mom_eos::interface::calculate_density regrid_interp::regridding_set_ppolys regridding_set_ppolys coord_hycom::build_hycom1_target_anomaly->regrid_interp::regridding_set_ppolys
Text view
Callers call graph
Callers of coord_hycom::build_hycom1_target_anomaly calls cluster_coord_hycom coord_hycom coord_hycom::build_hycom1_column build_hycom1_column coord_hycom::build_hycom1_target_anomaly build_hycom1_target_anomaly [private/internal] coord_hycom::build_hycom1_column->coord_hycom::build_hycom1_target_anomaly
Text view
API generated with Flint · Rendered from reStructuredText