MOM_oda_incupd module reference
This module contains the routines used to apply incremental updates from data assimilation.
Applying incremental updates requires the following:
initialize_oda_incupd_fixed and initialize_oda_incupd
set_up_oda_incupd_field (tracers) and set_up_oda_incupd_vel_field (vel)
calc_oda_increments (if using full fields input)
apply_oda_incupd
output_oda_incupd_inc (output increment if using full fields input)
init_oda_incupd_diags (to output increments in diagnostics)
oda_incupd_end (not being used for now)
Data Types
A structure for creating arrays of pointers to 3D arrays with extra gridding information |
|
oda incupd control structure |
Functions/Subroutines
This subroutine defined the control structure of module and register |
|
This subroutine defined the number of time step for full update, stores the layer pressure increments and initialize remap structure. |
|
This subroutine stores the increments at h points for the variable whose address is given by f_ptr. |
|
This subroutine stores the increments at u and v points for the variable whose address is given by u_ptr and v_ptr. |
|
This subroutine applies oda increments to layers thicknesses, temp, salt, U and V everywhere . |
|
Output increment if using full fields for the oda_incupd module. |
|
Initialize diagnostics for the oda_incupd module. |
|
This subroutine deallocates any memory associated with the oda_incupd module. |
Type Documentation
- type :: p3d
A structure for creating arrays of pointers to 3D arrays with extra gridding information
- Parameters
id
id for FMS external time interpolator
nz_data
The number of vertical levels in the input field.
mask_in
pointer to the data mask (perhaps unused) [nondim]
p
pointer to the data, in units that depend on the field it refers to [various].
h
pointer to the data grid (perhaps unused) in [H ~> m or kg m-2]
- type, public :: oda_incupd_CS
oda incupd control structure
- Parameters
nz
The total number of layers.
nz_data
The total number of arbritary layers (used by older code).
fldno
The number of fields which have already been registered by calls to set_up_oda_incupd_field
Inc
The increments to be applied to the field
Inc_u
The increments to be applied to the u-velocities, with data in [L T-1 ~> m s-1]
Inc_v
The increments to be applied to the v-velocities, with data in [L T-1 ~> m s-1]
Ref_h
Vertical grid on which the increments are provided, with data in [H ~> m or kg m-2]
nstep_incupd
number of time step for full update
ncount
increment time step counter [nondim]. This could be an integer but a real variable works better with the existing restarts.
remap_cs
Remapping parameters and work arrays
incupdDataOngrid
True if the incupd data are on the model horizontal grid
uv_inc
use u and v increments
diag
structure to regulate output
id_u_oda_inc
diagnostic id for zonal velocity inc.
id_v_oda_inc
diagnostic id for meridional velocity inc.
id_h_oda_inc
diagnostic id for layer thicknesses inc.
id_T_oda_inc
diagnostic id for temperature inc.
id_S_oda_inc
diagnostic id for salinity inc.
Functions/Subroutine Documentation
- subroutine initialize_oda_incupd_fixed(G, GV, US, CS, restart_CS)
This subroutine defined the control structure of module and register
- Parameters
G [in]
The ocean's grid structure.
GV [in]
ocean vertical grid structure
US [in]
A dimensional unit scaling type
CS
A pointer that is set to point to the control structure for this module (in/out).
restart_CS [inout]
MOM restart control struct
Callees call graph
Callers call graph
- subroutine initialize_oda_incupd(G, GV, US, param_file, CS, data_h, nz_data, restart_CS)
This subroutine defined the number of time step for full update, stores the layer pressure increments and initialize remap structure.
- Parameters
G [in]
The ocean's grid structure.
GV [in]
ocean vertical grid structure
US [in]
A dimensional unit scaling type
nz_data [in]
The total number of incr. input layers.
param_file [in]
A structure indicating the open file to parse for model parameter values.
CS
A pointer that is set to point to the control structure for this module (in/out).
data_h [in]
The ODA h [H ~> m or kg m-2].
restart_CS [in]
MOM restart control struct
Callees call graph
Text view
mom_oda_incupd::initialize_oda_incupd → mom_error_handler::mom_error
mom_oda_incupd::initialize_oda_incupd → mom_error_infra::is_root_pe
mom_oda_incupd::initialize_oda_incupd → mom_file_parser::interface::get_param
mom_oda_incupd::initialize_oda_incupd → mom_file_parser::interface::log_version
mom_oda_incupd::initialize_oda_incupd → mom_remapping::initialize_remapping
mom_oda_incupd::initialize_oda_incupd → mom_restart::interface::query_initialized
Callers call graph
- subroutine set_up_oda_incupd_field(sp_val, G, GV, CS)
This subroutine stores the increments at h points for the variable whose address is given by f_ptr.
- Parameters
G [in]
Grid structure
GV [in]
ocean vertical grid structure
CS
oda_incupd control structure (in/out).
sp_val [in]
increment field, it can have an arbitrary number of layers, in various units depending on the field it refers to [various].
Callers call graph
- subroutine set_up_oda_incupd_vel_field(u_val, v_val, G, GV, CS)
This subroutine stores the increments at u and v points for the variable whose address is given by u_ptr and v_ptr.
- Parameters
G [in]
Grid structure (in).
GV [in]
ocean vertical grid structure
CS
oda incupd structure (in/out).
u_val [in]
u increment, it has arbritary number of layers but not to exceed the total number of model layers [L T-1 ~> m s-1]
v_val [in]
v increment, it has arbritary number of layers but not to exceed the number of model layers [L T-1 ~> m s-1]
Callers call graph
subroutine calc_oda_increments(h, tv, u, v, G, GV, US, CS)
- Parameters
G [in]
The ocean's grid structure (in).
GV [in]
ocean vertical grid structure
US [in]
A dimensional unit scaling type
h [inout]
Layer thickness [H ~> m or kg m-2] (in)
tv [in]
A structure pointing to various thermodynamic variables
u [in]
The zonal velocity that is being initialized [L T-1 ~> m s-1]
v [in]
The meridional velocity that is being initialized [L T-1 ~> m s-1]
CS
A pointer to the control structure for this module that is set by a previous call to initialize_oda_incupd (in).
h_obs
Layer-thicknesses of increments [H ~> m or kg m-2]
Callees call graph
Text view
Callers call graph
- subroutine apply_oda_incupd(h, tv, u, v, dt, G, GV, US, CS)
This subroutine applies oda increments to layers thicknesses, temp, salt, U and V everywhere .
- Parameters
G [in]
The ocean's grid structure (in).
GV [in]
ocean vertical grid structure
US [in]
A dimensional unit scaling type
h [inout]
Layer thickness [H ~> m or kg m-2] (in)
tv [inout]
A structure pointing to various thermodynamic variables
u [inout]
The zonal velocity that is being initialized [L T-1 ~> m s-1]
v [inout]
The meridional velocity that is being initialized [L T-1 ~> m s-1]
dt [in]
The amount of time covered by this call [T ~> s].
CS
A pointer to the control structure for this module that is set by a previous call to initialize_oda_incupd (in).
tmp_t
A temporary array for t increments [C ~> degC]
tmp_s
A temporary array for s increments [S ~> ppt]
tmp_u
A temporary array for u increments [L T-1 ~> m s-1]
tmp_v
A temporary array for v increments [L T-1 ~> m s-1]
h_obs
h of increments [H ~> m or kg m-2]
tmp_h
temporary array for corrected h_obs [H ~> m or kg m-2]
Callees call graph
Text view
mom_oda_incupd::apply_oda_incupd → mom_diag_mediator::interface::post_data
mom_oda_incupd::apply_oda_incupd → mom_domain_infra::interface::pass_var
mom_oda_incupd::apply_oda_incupd → mom_domain_infra::interface::pass_vector
mom_oda_incupd::apply_oda_incupd → mom_error_handler::mom_error
mom_oda_incupd::apply_oda_incupd → mom_error_infra::is_root_pe
mom_oda_incupd::apply_oda_incupd → mom_remapping::remapping_core_h
- subroutine output_oda_incupd_inc(Time, G, GV, param_file, CS, US)
Output increment if using full fields for the oda_incupd module.
- Parameters
Time [in]
The current model time
G [inout]
The ocean's grid structure
GV [in]
ocean vertical grid structure
param_file [in]
A structure indicating the open file to parse for
CS
ODA incupd control structure
US [in]
A dimensional unit scaling
Callees call graph
Text view
mom_oda_incupd::output_oda_incupd_inc → mom_error_handler::mom_error
mom_oda_incupd::output_oda_incupd_inc → mom_error_infra::is_root_pe
mom_oda_incupd::output_oda_incupd_inc → mom_file_parser::interface::get_param
mom_oda_incupd::output_oda_incupd_inc → mom_get_input::get_mom_input
mom_oda_incupd::output_oda_incupd_inc → mom_restart::interface::register_restart_field
mom_oda_incupd::output_oda_incupd_inc → mom_restart::interface::register_restart_pair
mom_oda_incupd::output_oda_incupd_inc → mom_restart::restart_init
mom_oda_incupd::output_oda_incupd_inc → mom_restart::save_restart
mom_oda_incupd::output_oda_incupd_inc → mom_verticalgrid::get_thickness_units
Callers call graph
- subroutine init_oda_incupd_diags(Time, G, GV, diag, CS, US)
Initialize diagnostics for the oda_incupd module.
- Parameters
Time [in]
The current model time
G [in]
The ocean's grid structure
GV [in]
ocean vertical grid structure
diag [inout]
A structure that is used to regulate diagnostic output.
CS
ALE sponge control structure
US [in]
A dimensional unit scaling
Callees call graph
- subroutine oda_incupd_end(CS)
This subroutine deallocates any memory associated with the oda_incupd module.
- Parameters
CS
A pointer to the control structure that is set by a previous call to initialize_oda_incupd.