MOM6
|
Data Types | |
type | ocmip2_cfc_cs |
type | p3d |
Functions/Subroutines | |
logical function, public | register_ocmip2_cfc (HI, GV, param_file, CS, tr_Reg, restart_CS) |
subroutine, public | initialize_ocmip2_cfc (restart, day, G, GV, h, diag, OBC, CS, sponge_CSp, diag_to_Z_CSp) |
This subroutine initializes the NTR tracer fields in tr(:,:,:,:) and it sets up the tracer output. More... | |
subroutine | init_tracer_cfc (h, tr, name, land_val, IC_val, G, CS) |
This subroutine initializes a tracer array. More... | |
subroutine, public | ocmip2_cfc_column_physics (h_old, h_new, ea, eb, fluxes, dt, G, GV, CS, evap_CFL_limit, minimum_forcing_depth) |
This subroutine applies diapycnal diffusion and any other column. More... | |
integer function, public | ocmip2_cfc_stock (h, stocks, G, GV, CS, names, units, stock_index) |
This function calculates the mass-weighted integral of all tracer stocks, returning the number of stocks it has calculated. If the stock_index is present, only the stock corresponding to that coded index is returned. More... | |
subroutine, public | ocmip2_cfc_surface_state (state, h, G, CS) |
subroutine, public | ocmip2_cfc_end (CS) |
Variables | |
integer, parameter | ntr = 2 |
|
private |
This subroutine initializes a tracer array.
[in] | g | The ocean's grid structure |
[in] | h | Layer thicknesses, in H (usually m or kg m-2) |
Definition at line 501 of file MOM_OCMIP2_CFC.F90.
References mom_error_handler::mom_error(), and mom_tracer_z_init::tracer_z_init().
Referenced by initialize_ocmip2_cfc().
subroutine, public mom_ocmip2_cfc::initialize_ocmip2_cfc | ( | logical, intent(in) | restart, |
type(time_type), intent(in), target | day, | ||
type(ocean_grid_type), intent(in) | G, | ||
type(verticalgrid_type), intent(in) | GV, | ||
real, dimension(szi_(g),szj_(g),szk_(g)), intent(in) | h, | ||
type(diag_ctrl), intent(in), target | diag, | ||
type(ocean_obc_type), pointer | OBC, | ||
type(ocmip2_cfc_cs), pointer | CS, | ||
type(sponge_cs), pointer | sponge_CSp, | ||
type(diag_to_z_cs), pointer | diag_to_Z_CSp | ||
) |
This subroutine initializes the NTR tracer fields in tr(:,:,:,:) and it sets up the tracer output.
[in] | restart | .true. if the fields have already been read from a restart file. |
[in] | day | Time of the start of the run. |
[in] | g | The ocean's grid structure. |
[in] | gv | The ocean's vertical grid structure. |
[in] | h | Layer thicknesses, in H |
[in] | diag | A structure that is used to regulate diagnostic output. |
obc | This open boundary condition type specifies whether, where, and what open boundary conditions are used. | |
cs | The control structure returned by a previous call to register_OCMIP2_CFC. | |
sponge_csp | A pointer to the control structure for the sponges, if they are in use. Otherwise this may be unassociated. | |
diag_to_z_csp | A pointer to the control structure for diagnostics in depth space. |
Definition at line 374 of file MOM_OCMIP2_CFC.F90.
References mom_tracer_registry::add_tracer_diagnostics(), init_tracer_cfc(), mom_error_handler::mom_error(), ntr, mom_io::query_vardesc(), and mom_diag_to_z::register_z_tracer().
subroutine, public mom_ocmip2_cfc::ocmip2_cfc_column_physics | ( | real, dimension(szi_(g),szj_(g),szk_(g)), intent(in) | h_old, |
real, dimension(szi_(g),szj_(g),szk_(g)), intent(in) | h_new, | ||
real, dimension(szi_(g),szj_(g),szk_(g)), intent(in) | ea, | ||
real, dimension(szi_(g),szj_(g),szk_(g)), intent(in) | eb, | ||
type(forcing), intent(in) | fluxes, | ||
real, intent(in) | dt, | ||
type(ocean_grid_type), intent(in) | G, | ||
type(verticalgrid_type), intent(in) | GV, | ||
type(ocmip2_cfc_cs), pointer | CS, | ||
real, intent(in), optional | evap_CFL_limit, | ||
real, intent(in), optional | minimum_forcing_depth | ||
) |
This subroutine applies diapycnal diffusion and any other column.
[in] | g | The ocean's grid structure. |
[in] | gv | The ocean's vertical grid structure. |
[in] | h_old | Layer thickness before entrainment, |
[in] | h_new | Layer thickness after entrainment, |
[in] | ea | an array to which the amount of fluid |
[in] | eb | an array to which the amount of fluid |
[in] | fluxes | A structure containing pointers to any possible forcing fields. Unused fields have NULL ptrs. |
[in] | dt | The amount of time covered by this call, in s |
cs | The control structure returned by a previous call to register_OCMIP2_CFC. |
Definition at line 547 of file MOM_OCMIP2_CFC.F90.
References mom_tracer_diabatic::applytracerboundaryfluxesinout(), ntr, and mom_tracer_diabatic::tracer_vertdiff().
subroutine, public mom_ocmip2_cfc::ocmip2_cfc_end | ( | type(ocmip2_cfc_cs), pointer | CS | ) |
Definition at line 814 of file MOM_OCMIP2_CFC.F90.
References ntr.
Referenced by mom_tracer_flow_control::tracer_flow_control_end().
integer function, public mom_ocmip2_cfc::ocmip2_cfc_stock | ( | real, dimension(szi_(g),szj_(g),szk_(g)), intent(in) | h, |
real, dimension(:), intent(out) | stocks, | ||
type(ocean_grid_type), intent(in) | G, | ||
type(verticalgrid_type), intent(in) | GV, | ||
type(ocmip2_cfc_cs), pointer | CS, | ||
character(len=*), dimension(:), intent(out) | names, | ||
character(len=*), dimension(:), intent(out) | units, | ||
integer, intent(in), optional | stock_index | ||
) |
This function calculates the mass-weighted integral of all tracer stocks, returning the number of stocks it has calculated. If the stock_index is present, only the stock corresponding to that coded index is returned.
[in] | g | The ocean's grid structure. |
[in] | gv | The ocean's vertical grid structure. |
[in] | h | Layer thicknesses, in H |
[out] | stocks | the mass-weighted integrated amount of each tracer, in kg times concentration units. |
cs | The control structure returned by a previous call to register_OCMIP2_CFC. | |
[out] | names | The names of the stocks calculated. |
[out] | units | The units of the stocks calculated. |
[in] | stock_index | The coded index of a specific stock being sought. |
Definition at line 674 of file MOM_OCMIP2_CFC.F90.
References mom_io::query_vardesc().
Referenced by mom_tracer_flow_control::call_tracer_stocks().
subroutine, public mom_ocmip2_cfc::ocmip2_cfc_surface_state | ( | type(surface), intent(inout) | state, |
real, dimension( g %isd: g %ied, g %jsd: g %jed, g %ke), intent(in) | h, | ||
type(ocean_grid_type), intent(in) | G, | ||
type(ocmip2_cfc_cs), pointer | CS | ||
) |
[in] | g | The ocean's grid structure. |
[in] | h | Layer thicknesses, in H (usually m or kg m-2). |
cs | The control structure returned by a previous call to register_OCMIP2_CFC. |
Definition at line 737 of file MOM_OCMIP2_CFC.F90.
logical function, public mom_ocmip2_cfc::register_ocmip2_cfc | ( | type(hor_index_type), intent(in) | HI, |
type(verticalgrid_type), intent(in) | GV, | ||
type(param_file_type), intent(in) | param_file, | ||
type(ocmip2_cfc_cs), pointer | CS, | ||
type(tracer_registry_type), pointer | tr_Reg, | ||
type(mom_restart_cs), pointer | restart_CS | ||
) |
[in] | hi | A horizontal index type structure. |
[in] | gv | The ocean's vertical grid structure. |
[in] | param_file | A structure to parse for run-time parameters. |
cs | A pointer that is set to point to the control structure for this module. | |
tr_reg | A pointer to the tracer registry. | |
restart_cs | A pointer to the restart control structure. |
Definition at line 161 of file MOM_OCMIP2_CFC.F90.
References atmos_ocean_fluxes_mod::aof_set_coupler_flux(), mom_error_handler::mom_error(), and mom_io::var_desc().
|
private |
Definition at line 101 of file MOM_OCMIP2_CFC.F90.
Referenced by initialize_ocmip2_cfc(), ocmip2_cfc_column_physics(), and ocmip2_cfc_end().