MOM6
|
Provides routines that do checksums of groups of MOM variables.
Data Types | |
interface | mom_state_chksum |
Write out checksums of the MOM6 state variables. More... | |
type | stats |
A type for storing statistica about a variable. More... | |
Functions/Subroutines | |
subroutine | mom_state_chksum_5arg (mesg, u, v, h, uh, vh, G, GV, US, haloshift, symmetric, vel_scale) |
Write out chksums for the model's basic state variables, including transports. More... | |
subroutine | mom_state_chksum_3arg (mesg, u, v, h, G, GV, US, haloshift, symmetric) |
Write out chksums for the model's basic state variables. More... | |
subroutine, public | mom_thermo_chksum (mesg, tv, G, US, haloshift) |
Write out chksums for the model's thermodynamic state variables. More... | |
subroutine, public | mom_surface_chksum (mesg, sfc, G, haloshift, symmetric) |
Write out chksums for the ocean surface variables. More... | |
subroutine, public | mom_accel_chksum (mesg, CAu, CAv, PFu, PFv, diffu, diffv, G, GV, US, pbce, u_accel_bt, v_accel_bt, symmetric) |
Write out chksums for the model's accelerations. More... | |
subroutine, public | mom_state_stats (mesg, u, v, h, Temp, Salt, G, GV, US, allowChange, permitDiminishing) |
Monitor and write out statistics for the model's state variables. More... | |
subroutine, public mom_checksum_packages::mom_accel_chksum | ( | character(len=*), intent(in) | mesg, |
real, dimension( g %isdb: g %iedb, g %jsd: g %jed, g %ke), intent(in) | CAu, | ||
real, dimension( g %isd: g %ied, g %jsdb: g %jedb, g %ke), intent(in) | CAv, | ||
real, dimension( g %isdb: g %iedb, g %jsd: g %jed, g %ke), intent(in) | PFu, | ||
real, dimension( g %isd: g %ied, g %jsdb: g %jedb, g %ke), intent(in) | PFv, | ||
real, dimension( g %isdb: g %iedb, g %jsd: g %jed, g %ke), intent(in) | diffu, | ||
real, dimension( g %isd: g %ied, g %jsdb: g %jedb, g %ke), intent(in) | diffv, | ||
type(ocean_grid_type), intent(in) | G, | ||
type(verticalgrid_type), intent(in) | GV, | ||
type(unit_scale_type), intent(in) | US, | ||
real, dimension( g %isd: g %ied, g %jsd: g %jed, g %ke), intent(in), optional | pbce, | ||
real, dimension( g %isdb: g %iedb, g %jsd: g %jed, g %ke), intent(in), optional | u_accel_bt, | ||
real, dimension( g %isd: g %ied, g %jsdb: g %jedb, g %ke), intent(in), optional | v_accel_bt, | ||
logical, intent(in), optional | symmetric | ||
) |
Write out chksums for the model's accelerations.
[in] | mesg | A message that appears on the chksum lines. |
[in] | g | The ocean's grid structure. |
[in] | gv | The ocean's vertical grid structure. |
[in] | cau | Zonal acceleration due to Coriolis |
[in] | cav | Meridional acceleration due to Coriolis |
[in] | pfu | Zonal acceleration due to pressure gradients |
[in] | pfv | Meridional acceleration due to pressure gradients |
[in] | diffu | Zonal acceleration due to convergence of the |
[in] | diffv | Meridional acceleration due to convergence of |
[in] | us | A dimensional unit scaling type |
[in] | pbce | The baroclinic pressure anomaly in each layer |
[in] | u_accel_bt | The zonal acceleration from terms in the |
[in] | v_accel_bt | The meridional acceleration from terms in |
[in] | symmetric | If true, do checksums on the fully symmetric computational domain. |
Definition at line 175 of file MOM_checksum_packages.F90.
Referenced by mom_dynamics_split_rk2::step_mom_dyn_split_rk2(), mom_dynamics_unsplit::step_mom_dyn_unsplit(), and mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2().
|
private |
Write out chksums for the model's basic state variables.
[in] | mesg | A message that appears on the chksum lines. |
[in] | g | The ocean's grid structure. |
[in] | gv | The ocean's vertical grid structure. |
[in] | u | Zonal velocity [L T-1 ~> m s-1] or [m s-1]. |
[in] | v | Meridional velocity [L T-1 ~> m s-1] or [m s-1].. |
[in] | h | Layer thicknesses [H ~> m or kg m-2]. |
[in] | us | A dimensional unit scaling type, which is used to rescale u and v if present. |
[in] | haloshift | The width of halos to check (default 0). |
[in] | symmetric | If true, do checksums on the fully symmetric computational domain. |
Definition at line 87 of file MOM_checksum_packages.F90.
|
private |
Write out chksums for the model's basic state variables, including transports.
[in] | mesg | A message that appears on the chksum lines. |
[in] | g | The ocean's grid structure. |
[in] | gv | The ocean's vertical grid structure. |
[in] | u | The zonal velocity [L T-1 ~> m s-1] or other units. |
[in] | v | The meridional velocity [L T-1 ~> m s-1] or other units. |
[in] | h | Layer thicknesses [H ~> m or kg m-2]. |
[in] | uh | Volume flux through zonal faces = u*h*dy |
[in] | vh | Volume flux through meridional faces = v*h*dx |
[in] | us | A dimensional unit scaling type |
[in] | haloshift | The width of halos to check (default 0). |
[in] | symmetric | If true, do checksums on the fully symmetric computational domain. |
[in] | vel_scale | The scaling factor to convert velocities to [m s-1] |
Definition at line 43 of file MOM_checksum_packages.F90.
subroutine, public mom_checksum_packages::mom_state_stats | ( | character(len=*), intent(in) | mesg, |
real, dimension(szib_(g),szj_(g),szk_(g)), intent(in) | u, | ||
real, dimension(szi_(g),szjb_(g),szk_(g)), intent(in) | v, | ||
real, dimension(szi_(g),szj_(g),szk_(g)), intent(in) | h, | ||
real, dimension(:,:,:), intent(in), pointer | Temp, | ||
real, dimension(:,:,:), intent(in), pointer | Salt, | ||
type(ocean_grid_type), intent(in) | G, | ||
type(verticalgrid_type), intent(in) | GV, | ||
type(unit_scale_type), intent(in) | US, | ||
logical, intent(in), optional | allowChange, | ||
logical, intent(in), optional | permitDiminishing | ||
) |
Monitor and write out statistics for the model's state variables.
[in] | g | The ocean's grid structure. |
[in] | gv | The ocean's vertical grid structure. |
[in] | mesg | A message that appears on the chksum lines. |
[in] | u | The zonal velocity [L T-1 ~> m s-1]. |
[in] | v | The meridional velocity [L T-1 ~> m s-1]. |
[in] | h | Layer thicknesses [H ~> m or kg m-2]. |
[in] | temp | Temperature [degC]. |
[in] | salt | Salinity [ppt]. |
[in] | us | A dimensional unit scaling type |
[in] | allowchange | do not flag an error if the statistics change. |
[in] | permitdiminishing | do not flag error if the extrema are diminishing. |
Definition at line 233 of file MOM_checksum_packages.F90.
References mom_error_handler::is_root_pe(), and mom_error_handler::mom_mesg().
Referenced by mom_diabatic_driver::diabatic(), mom_diabatic_driver::diabatic_ale(), mom_diabatic_driver::diabatic_ale_legacy(), and mom_diabatic_driver::layered_diabatic().
subroutine, public mom_checksum_packages::mom_surface_chksum | ( | character(len=*), intent(in) | mesg, |
type(surface), intent(inout) | sfc, | ||
type(ocean_grid_type), intent(in) | G, | ||
integer, intent(in), optional | haloshift, | ||
logical, intent(in), optional | symmetric | ||
) |
Write out chksums for the ocean surface variables.
[in] | mesg | A message that appears on the chksum lines. |
[in,out] | sfc | transparent ocean surface state structure shared with the calling routine data in this structure is intent out. |
[in] | g | The ocean's grid structure. |
[in] | haloshift | The width of halos to check (default 0). |
[in] | symmetric | If true, do checksums on the fully symmetric computational domain. |
Definition at line 144 of file MOM_checksum_packages.F90.
Referenced by mom::extract_surface_state().
subroutine, public mom_checksum_packages::mom_thermo_chksum | ( | character(len=*), intent(in) | mesg, |
type(thermo_var_ptrs), intent(in) | tv, | ||
type(ocean_grid_type), intent(in) | G, | ||
type(unit_scale_type), intent(in) | US, | ||
integer, intent(in), optional | haloshift | ||
) |
Write out chksums for the model's thermodynamic state variables.
[in] | mesg | A message that appears on the chksum lines. |
[in] | tv | A structure pointing to various thermodynamic variables. |
[in] | g | The ocean's grid structure. |
[in] | us | A dimensional unit scaling type |
[in] | haloshift | The width of halos to check (default 0). |
Definition at line 121 of file MOM_checksum_packages.F90.