MOM_PointAccel module reference

Debug accelerations at a given point

The two subroutines in this file write out all of the terms in the u- or v-momentum balance at a given point. Usually these subroutines are called after the velocities exceed some threshold, in order to determine which term is culpable. often this is done for debugging purposes.

Data Types

PointAccel_CS

The control structure for the MOM_PointAccel module

Functions/Subroutines

write_u_accel

This subroutine writes to an output file all of the accelerations that have been applied to a column of zonal velocities over the previous timestep. This subroutine is called from vertvisc.

write_v_accel

This subroutine writes to an output file all of the accelerations that have been applied to a column of meridional velocities over the previous timestep. This subroutine is called from vertvisc.

PointAccel_init

This subroutine initializes the parameters regulating how truncations are logged.

Type Documentation

type, public :: PointAccel_CS

The control structure for the MOM_PointAccel module

Parameters
  • u_trunc_file

    The complete path to the file in which a column's worth of u-accelerations are written if u-velocity truncations occur.

  • v_trunc_file

    The complete path to the file in which a column's worth of v-accelerations are written if v-velocity truncations occur.

  • u_file

    The unit number for an opened u-truncation files, or -1 if it has not yet been opened.

  • v_file

    The unit number for an opened v-truncation files, or -1 if it has not yet been opened.

  • cols_written

    The number of columns whose output has been written by this PE during the current run.

  • max_writes

    The maximum number of times any PE can write out a column's worth of accelerations during a run.

  • full_column

    If true, write out the accelerations in all massive layers, otherwise just document the ones with large velocities.

  • Time

    A pointer to the ocean model's clock.

  • diag

    A structure that is used to regulate the timing of diagnostic output.

  • u_av

    Time average u-velocity [L T-1 ~> m s-1]

  • v_av

    Time average velocity [L T-1 ~> m s-1]

  • u_prev

    Previous u-velocity [L T-1 ~> m s-1]

  • v_prev

    Previous v-velocity [L T-1 ~> m s-1]

  • T

    Temperature [C ~> degC]

  • S

    Salinity [S ~> ppt]

  • u_accel_bt

    Barotropic u-accelerations [L T-2 ~> m s-2]

  • v_accel_bt

    Barotropic v-accelerations [L T-2 ~> m s-2]

Functions/Subroutine Documentation

subroutine write_u_accel(I, j, um, hin, ADp, CDp, dt, G, GV, US, CS, vel_rpt, str, a, hv)

This subroutine writes to an output file all of the accelerations that have been applied to a column of zonal velocities over the previous timestep. This subroutine is called from vertvisc.

Parameters
  • I [in]

    The zonal index of the column to be documented.

  • j [in]

    The meridional index of the column to be documented.

  • G [in]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • US [in]

    A dimensional unit scaling type

  • um [in]

    The new zonal velocity [L T-1 ~> m s-1].

  • hin [in]

    The layer thickness [H ~> m or kg m-2].

  • ADp [in]

    A structure pointing to the various accelerations in the momentum equations.

  • CDp [in]

    A structure with pointers to various terms in the continuity equations.

  • dt [in]

    The ocean dynamics time step [T ~> s].

  • CS

    The control structure returned by a previous call to PointAccel_init.

  • vel_rpt [in]

    The velocity magnitude that triggers a report [L T-1 ~> m s-1]

  • str [in]

    The surface wind stress [R L Z T-2 ~> Pa]

  • a [in]

    The layer coupling coefficients from vertvisc [H T-1 ~> m s-1 or Pa s m-1]

  • hv [in]

    The layer thicknesses at velocity grid points, from vertvisc [H ~> m or kg m-2].

Callees call graph
Callees of mom_pointaccel::write_u_accel calls cluster_mom_coms_infra MOM_coms_infra cluster_mom_error_handler MOM_error_handler cluster_mom_io_infra MOM_io_infra cluster_mom_pointaccel MOM_PointAccel mom_coms_infra::pe_here PE_here mom_error_handler::mom_error MOM_error mom_io_infra::open_ascii_file open_ASCII_file mom_pointaccel::write_u_accel write_u_accel mom_pointaccel::write_u_accel->mom_coms_infra::pe_here mom_pointaccel::write_u_accel->mom_error_handler::mom_error mom_pointaccel::write_u_accel->mom_io_infra::open_ascii_file
Text view
Callers call graph
Callers of mom_pointaccel::write_u_accel calls cluster_mom_pointaccel MOM_PointAccel cluster_mom_vert_friction MOM_vert_friction mom_pointaccel::write_u_accel write_u_accel mom_vert_friction::vertvisc_limit_vel vertvisc_limit_vel mom_vert_friction::vertvisc_limit_vel->mom_pointaccel::write_u_accel
Text view

External calls

time_manager_mod
  • get_date (time_manager_mod::get_date)

  • get_time (time_manager_mod::get_time)

  • set_date (time_manager_mod::set_date)

subroutine write_v_accel(i, J, vm, hin, ADp, CDp, dt, G, GV, US, CS, vel_rpt, str, a, hv)

This subroutine writes to an output file all of the accelerations that have been applied to a column of meridional velocities over the previous timestep. This subroutine is called from vertvisc.

Parameters
  • i [in]

    The zonal index of the column to be documented.

  • J [in]

    The meridional index of the column to be documented.

  • G [in]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • US [in]

    A dimensional unit scaling type

  • vm [in]

    The new meridional velocity [L T-1 ~> m s-1].

  • hin [in]

    The layer thickness [H ~> m or kg m-2].

  • ADp [in]

    A structure pointing to the various accelerations in the momentum equations.

  • CDp [in]

    A structure with pointers to various terms in the continuity equations.

  • dt [in]

    The ocean dynamics time step [T ~> s].

  • CS

    The control structure returned by a previous call to PointAccel_init.

  • vel_rpt [in]

    The velocity magnitude that triggers a report [L T-1 ~> m s-1]

  • str [in]

    The surface wind stress [R L Z T-2 ~> Pa]

  • a [in]

    The layer coupling coefficients from vertvisc [H T-1 ~> m s-1 or Pa s m-1]

  • hv [in]

    The layer thicknesses at velocity grid points, from vertvisc [H ~> m or kg m-2].

Callees call graph
Callees of mom_pointaccel::write_v_accel calls cluster_mom_coms_infra MOM_coms_infra cluster_mom_error_handler MOM_error_handler cluster_mom_io_infra MOM_io_infra cluster_mom_pointaccel MOM_PointAccel mom_coms_infra::pe_here PE_here mom_error_handler::mom_error MOM_error mom_io_infra::open_ascii_file open_ASCII_file mom_pointaccel::write_v_accel write_v_accel mom_pointaccel::write_v_accel->mom_coms_infra::pe_here mom_pointaccel::write_v_accel->mom_error_handler::mom_error mom_pointaccel::write_v_accel->mom_io_infra::open_ascii_file
Text view
Callers call graph
Callers of mom_pointaccel::write_v_accel calls cluster_mom_pointaccel MOM_PointAccel cluster_mom_vert_friction MOM_vert_friction mom_pointaccel::write_v_accel write_v_accel mom_vert_friction::vertvisc_limit_vel vertvisc_limit_vel mom_vert_friction::vertvisc_limit_vel->mom_pointaccel::write_v_accel
Text view

External calls

time_manager_mod
  • get_date (time_manager_mod::get_date)

  • get_time (time_manager_mod::get_time)

  • set_date (time_manager_mod::set_date)

subroutine PointAccel_init(MIS, Time, G, param_file, diag, dirs, CS)

This subroutine initializes the parameters regulating how truncations are logged.

Parameters
  • MIS [in]

    For "MOM Internal State" a set of pointers to the fields and accelerations that make up the ocean's physical state.

  • Time [in]

    The current model time.

  • G [in]

    The ocean's grid structure.

  • param_file [in]

    A structure to parse for run-time parameters.

  • diag [inout]

    A structure that is used to regulate diagnostic output.

  • dirs [in]

    A structure containing several relevant directory paths.

  • CS

    A pointer that is set to point to the control structure for this module.

Callees call graph
Callees of mom_pointaccel::pointaccel_init calls cluster_mom_file_parser MOM_file_parser cluster_mom_pointaccel MOM_PointAccel mom_file_parser::interface::get_param get_param (interface) mom_file_parser::interface::log_param log_param (interface) mom_file_parser::interface::log_version log_version (interface) mom_pointaccel::pointaccel_init PointAccel_init mom_pointaccel::pointaccel_init->mom_file_parser::interface::get_param mom_pointaccel::pointaccel_init->mom_file_parser::interface::log_param mom_pointaccel::pointaccel_init->mom_file_parser::interface::log_version
Text view
Callers call graph
Callers of mom_pointaccel::pointaccel_init calls cluster_mom_pointaccel MOM_PointAccel cluster_mom_vert_friction MOM_vert_friction mom_pointaccel::pointaccel_init PointAccel_init mom_vert_friction::vertvisc_init vertvisc_init mom_vert_friction::vertvisc_init->mom_pointaccel::pointaccel_init
Text view
API generated with Flint · Rendered from reStructuredText