MOM6
|
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 | |
type | pointaccel_cs |
The control structure for the MOM_PointAccel module. More... | |
Functions/Subroutines | |
subroutine, public | write_u_accel (I, j, um, hin, ADp, CDp, dt_in_T, 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. More... | |
subroutine, public | write_v_accel (i, J, vm, hin, ADp, CDp, dt_in_T, 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. More... | |
subroutine, public | pointaccel_init (MIS, Time, G, param_file, diag, dirs, CS) |
This subroutine initializes the parameters regulating how truncations are logged. More... | |
subroutine, public mom_pointaccel::pointaccel_init | ( | type(ocean_internal_state), intent(in), target | MIS, |
type(time_type), intent(in), target | Time, | ||
type(ocean_grid_type), intent(in) | G, | ||
type(param_file_type), intent(in) | param_file, | ||
type(diag_ctrl), intent(inout), target | diag, | ||
type(directories), intent(in) | dirs, | ||
type(pointaccel_cs), pointer | CS | ||
) |
This subroutine initializes the parameters regulating how truncations are logged.
[in] | mis | For "MOM Internal State" a set of pointers |
[in] | time | The current model time. |
[in] | g | The ocean's grid structure. |
[in] | param_file | A structure to parse for run-time parameters. |
[in,out] | diag | A structure that is used to regulate diagnostic output. |
[in] | dirs | A structure containing several relevant directory paths. |
cs | A pointer that is set to point to the control structure for this module. |
Definition at line 732 of file MOM_PointAccel.F90.
subroutine, public mom_pointaccel::write_u_accel | ( | integer, intent(in) | I, |
integer, intent(in) | j, | ||
real, dimension( g %isdb: g %iedb, g %jsd: g %jed, g %ke), intent(in) | um, | ||
real, dimension( g %isd: g %ied, g %jsd: g %jed, g %ke), intent(in) | hin, | ||
type(accel_diag_ptrs), intent(in) | ADp, | ||
type(cont_diag_ptrs), intent(in) | CDp, | ||
real, intent(in) | dt_in_T, | ||
type(ocean_grid_type), intent(in) | G, | ||
type(verticalgrid_type), intent(in) | GV, | ||
type(unit_scale_type), intent(in) | US, | ||
type(pointaccel_cs), pointer | CS, | ||
real, intent(in) | vel_rpt, | ||
real, intent(in), optional | str, | ||
real, dimension( g %isdb: g %iedb, g %jsd: g %jed, g %ke), intent(in), optional | a, | ||
real, dimension( g %isdb: g %iedb, g %jsd: g %jed, g %ke), intent(in), optional | 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.
[in] | i | The zonal index of the column to be documented. |
[in] | j | The meridional index of the column to be documented. |
[in] | g | The ocean's grid structure. |
[in] | gv | The ocean's vertical grid structure. |
[in] | us | A dimensional unit scaling type |
[in] | um | The new zonal velocity [L T-1 ~> m s-1]. |
[in] | hin | The layer thickness [H ~> m or kg m-2]. |
[in] | adp | A structure pointing to the various accelerations in the momentum equations. |
[in] | cdp | A structure with pointers to various terms in the continuity equations. |
[in] | dt_in_t | The ocean dynamics time step [T ~> s]. |
cs | The control structure returned by a previous call to PointAccel_init. | |
[in] | vel_rpt | The velocity magnitude that triggers a report [L T-1 ~> m s-1]. |
[in] | str | The surface wind stress integrated over a time step divided by the Boussinesq density [m2 s-1]. |
[in] | a | The layer coupling coefficients from vertvisc [Z s-1 ~> m s-1]. |
[in] | hv | The layer thicknesses at velocity grid points, |
Definition at line 69 of file MOM_PointAccel.F90.
References mom_error_handler::mom_error().
subroutine, public mom_pointaccel::write_v_accel | ( | integer, intent(in) | i, |
integer, intent(in) | J, | ||
real, dimension( g %isd: g %ied, g %jsdb: g %jedb, g %ke), intent(in) | vm, | ||
real, dimension( g %isd: g %ied, g %jsd: g %jed, g %ke), intent(in) | hin, | ||
type(accel_diag_ptrs), intent(in) | ADp, | ||
type(cont_diag_ptrs), intent(in) | CDp, | ||
real, intent(in) | dt_in_T, | ||
type(ocean_grid_type), intent(in) | G, | ||
type(verticalgrid_type), intent(in) | GV, | ||
type(unit_scale_type), intent(in) | US, | ||
type(pointaccel_cs), pointer | CS, | ||
real, intent(in) | vel_rpt, | ||
real, intent(in), optional | str, | ||
real, dimension( g %isd: g %ied, g %jsdb: g %jedb, g %ke), intent(in), optional | a, | ||
real, dimension( g %isd: g %ied, g %jsdb: g %jedb, g %ke), intent(in), optional | 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.
[in] | i | The zonal index of the column to be documented. |
[in] | j | The meridional index of the column to be documented. |
[in] | g | The ocean's grid structure. |
[in] | gv | The ocean's vertical grid structure. |
[in] | us | A dimensional unit scaling type |
[in] | vm | The new meridional velocity [L T-1 ~> m s-1]. |
[in] | hin | The layer thickness [H ~> m or kg m-2]. |
[in] | adp | A structure pointing to the various accelerations in the momentum equations. |
[in] | cdp | A structure with pointers to various terms in the continuity equations. |
[in] | dt_in_t | The ocean dynamics time step [T ~> s]. |
cs | The control structure returned by a previous call to PointAccel_init. | |
[in] | vel_rpt | The velocity magnitude that triggers a report [L T-1 ~> m s-1]. |
[in] | str | The surface wind stress integrated over a time step divided by the Boussinesq density [m2 s-1]. |
[in] | a | The layer coupling coefficients from vertvisc [Z s-1 ~> m s-1]. |
[in] | hv | The layer thicknesses at velocity grid points, |
Definition at line 402 of file MOM_PointAccel.F90.
References mom_error_handler::mom_error().