MOM_oda_driver_mod module reference
Interfaces for MOM6 ensembles and data assimilation.
Data Types
@} |
|
A structure containing integer handles for bias adjustment of tracers |
|
Control structure that contains a transpose of the ocean state across ensemble members. |
Functions/Subroutines
initialize First_guess (prior) and Analysis grid information for all ensemble members |
|
Copy ensemble member tracers to ensemble vector. |
|
Returns posterior adjustments or full state Note that only those PEs associated with an ensemble member receive data |
|
Gather observations and call ODA routines |
|
Finalize DA module |
|
Initialize DA module |
|
Set the next analysis time |
|
Apply increments to tracers |
|
Set up the grid of thicknesses at tracer points throughout the global domain |
Detailed Description
The Ocean data assimilation (DA) and Ensemble Framework
The DA framework implements ensemble capability in MOM6. Currently, this framework is enabled using the cpp directive ENSEMBLE_OCEAN. The ensembles need to be generated at the level of the calling routine for oda_init or above. The ensemble instances may exist on overlapping or non-overlapping processors. The ensemble information is accessed via the FMS ensemble manager. An independent PE layout is used to gather (prior) ensemble member information where this information is stored in the ODA control structure. This module was developed in collaboration with Feiyu Lu and Tony Rosati in the GFDL prediction group for use in their coupled ensemble framework. These interfaces should be suitable for interfacing MOM6 to other data assimilation packages as well.
Type Documentation
- type :: ptr_mpp_domain
@}
A structure with a pointer to a domain2d, to allow for the creation of arrays of pointers.
- Parameters
mpp_domain
pointer to a domain2d
- type :: INC_CS
A structure containing integer handles for bias adjustment of tracers
- Parameters
fldno
The number of tracers
T
The handle for the temperature file
S
The handle for the salinity file
- type, public :: ODA_CS
Control structure that contains a transpose of the ocean state across ensemble members.
- Parameters
Ocean_prior
ensemble ocean prior states in DA space
Ocean_posterior
ensemble ocean posterior states or increments to prior in DA space
Ocean_increment
A separate structure for increment diagnostics
nk
number of vertical layers used for DA
Grid
MOM6 grid type and decomposition for the DA
G
MOM6 grid type and decomposition for the model
domains
Pointer to mpp_domain objects for ensemble members
GV
vertical grid for DA
US
structure containing various unit conversion factors for DA
mpp_domain
Pointer to a mpp domain object for DA
oda_grid
local tracer grid
h
layer thicknesses [H ~> m or kg m-2] for DA
T_tend
layer temperature tendency from DA [C T-1 ~> degC s-1]
S_tend
layer salinity tendency from DA [S T-1 ~> ppt s-1]
T_bc_tend
The layer temperature tendency due to bias adjustment [C T-1 ~> degC s-1]
S_bc_tend
The layer salinity tendency due to bias adjustment [S T-1 ~> ppt s-1]
ni
global i-direction grid size
nj
global j-direction grid size
reentrant_x
grid is reentrant in the x direction
reentrant_y
grid is reentrant in the y direction
tripolar_N
grid is folded at its north edge
symmetric
Values at C-grid locations are symmetric
use_basin_mask
If true, use a basin file to delineate weakly coupled ocean basins
do_bias_adjustment
If true, use spatio-temporally varying climatological tendency adjustment for Temperature and Salinity
bias_adjustment_multiplier
A scaling for the bias adjustment [nondim]
assim_method
Method: NO_ASSIM,EAKF_ASSIM or OI_ASSIM
ensemble_size
Size of the ensemble
ensemble_id
id of the current ensemble member
ensemble_pelist
PE list for ensemble members
filter_pelist
PE list for ensemble members
assim_interval
analysis interval [T ~> s]
Profiles
pointer to linked list of all available profiles
CProfiles
pointer to linked list of current profiles
kdroot
A structure for storing nearest neighbors
ALE_CS
ALE control structure for DA
use_ALE_algorithm
true is using ALE remapping
regridCS
ALE control structure for regridding
remapCS
ALE control structure for remapping
Time
Current Analysis time
diag_cs
Pointer to diagnostics control structure
INC_CS
A Structure containing integer file handles for bias adjustment
id_inc_t
A diagnostic handle for the temperature climatological adjustment
id_inc_s
A diagnostic handle for the salinity climatological adjustment
answer_date
The vintage of the order of arithmetic and expressions in the remapping invoked by the ODA driver. Values below 20190101 recover the answers from the end of 2018, while higher values use updated and more robust forms of the same expressions.
reproduce_2018_nmme
true if reproducing older NMME answers.
Functions/Subroutine Documentation
- subroutine init_oda(Time, G, GV, US, diag_CS, CS)
initialize First_guess (prior) and Analysis grid information for all ensemble members
- Parameters
Time [in]
The current model time.
G
domain and grid information for ocean model
GV [in]
The ocean's vertical grid structure
US [in]
A dimensional unit scaling type
diag_CS [inout]
A pointer to a diagnostic control structure
CS [inout]
The DA control structure
T_grid
global tracer grid
Callees call graph
Text view
mom_oda_driver_mod::init_oda → mom_ale::ale_initthicknesstocoord
mom_oda_driver_mod::init_oda → mom_ale::ale_updateverticalgridtype
mom_oda_driver_mod::init_oda → mom_coord_initialization::mom_initialize_coord
mom_oda_driver_mod::init_oda → mom_cpu_clock_infra::cpu_clock_begin
mom_oda_driver_mod::init_oda → mom_cpu_clock_infra::cpu_clock_end
mom_oda_driver_mod::init_oda → mom_cpu_clock_infra::cpu_clock_id
mom_oda_driver_mod::init_oda → mom_diag_mediator::register_diag_field
mom_oda_driver_mod::init_oda → mom_domain_infra::broadcast_domain
mom_oda_driver_mod::init_oda → mom_domain_infra::interface::clone_mom_domain
mom_oda_driver_mod::init_oda → mom_domain_infra::interface::get_domain_extent
mom_oda_driver_mod::init_oda → mom_domains::mom_domains_init
mom_oda_driver_mod::init_oda → mom_dyn_horgrid::create_dyn_horgrid
mom_oda_driver_mod::init_oda → mom_ensemble_manager_infra::get_ensemble_filter_pelist
mom_oda_driver_mod::init_oda → mom_ensemble_manager_infra::get_ensemble_id
mom_oda_driver_mod::init_oda → mom_ensemble_manager_infra::get_ensemble_pelist
mom_oda_driver_mod::init_oda → mom_ensemble_manager_infra::get_ensemble_size
mom_oda_driver_mod::init_oda → mom_file_parser::interface::get_param
mom_oda_driver_mod::init_oda → mom_fixed_initialization::mom_initialize_topography
mom_oda_driver_mod::init_oda → mom_grid_initialize::set_grid_metrics
mom_oda_driver_mod::init_oda → mom_hor_index::hor_index_init
mom_oda_driver_mod::init_oda → mom_interp_infra::init_extern_field
mom_oda_driver_mod::init_oda → mom_interpolate::get_external_field_info
mom_oda_driver_mod::init_oda → mom_io::interface::mom_read_data
mom_oda_driver_mod::init_oda → mom_oda_driver_mod::init_ocean_ensemble
mom_oda_driver_mod::init_oda → mom_oda_driver_mod::set_up_global_tgrid
mom_oda_driver_mod::init_oda → mom_regridding::initialize_regridding
mom_oda_driver_mod::init_oda → mom_regridding::set_h_neglect
mom_oda_driver_mod::init_oda → mom_regridding::set_regrid_params
mom_oda_driver_mod::init_oda → mom_remapping::initialize_remapping
mom_oda_driver_mod::init_oda → mom_string_functions::lowercase
mom_oda_driver_mod::init_oda → mom_string_functions::slasher
mom_oda_driver_mod::init_oda → mom_transcribe_grid::copy_dyngrid_to_mom_grid
mom_oda_driver_mod::init_oda → mom_unit_scaling::unit_scaling_init
mom_oda_driver_mod::init_oda → mom_verticalgrid::verticalgridinit
mom_oda_driver_mod::init_oda → ocean_da_core_mod::ocean_da_core_init
- subroutine set_prior_tracer(Time, G, GV, h, tv, CS)
Copy ensemble member tracers to ensemble vector.
- Parameters
Time [in]
The current model time
G
domain and grid information for ocean model
GV [in]
The ocean's vertical grid structure
h [in]
Layer thicknesses [H ~> m or kg m-2]
tv [in]
A structure pointing to various thermodynamic variables
CS
ocean DA control structure
Callees call graph
Text view
mom_oda_driver_mod::set_prior_tracer → mom_coms_infra::set_pelist
mom_oda_driver_mod::set_prior_tracer → mom_domain_infra::interface::pass_var
mom_oda_driver_mod::set_prior_tracer → mom_domain_infra::interface::redistribute_array
mom_oda_driver_mod::set_prior_tracer → mom_error_handler::mom_error
mom_oda_driver_mod::set_prior_tracer → mom_remapping::remapping_core_h
- subroutine get_posterior_tracer(Time, CS, increment)
Returns posterior adjustments or full state Note that only those PEs associated with an ensemble member receive data
- Parameters
Time [in]
the current model time
CS
ocean DA control structure
increment [in]
True if returning increment only
Callees call graph
Text view
mom_oda_driver_mod::get_posterior_tracer → mom_coms_infra::set_pelist
mom_oda_driver_mod::get_posterior_tracer → mom_domain_infra::interface::pass_var
mom_oda_driver_mod::get_posterior_tracer → mom_domain_infra::interface::redistribute_array
mom_oda_driver_mod::get_posterior_tracer → mom_error_handler::mom_mesg
- subroutine oda(Time, CS)
Gather observations and call ODA routines
- Parameters
Time [in]
the current model time
CS
A pointer the ocean DA control structure
Callees call graph
subroutine get_bias_correction_tracer(Time, US, CS)
- Parameters
Time [in]
the current model time
US [in]
A dimensional unit scaling type
CS
ocean DA control structure
Callees call graph
Text view
mom_oda_driver_mod::get_bias_correction_tracer → mom_cpu_clock_infra::cpu_clock_begin
mom_oda_driver_mod::get_bias_correction_tracer → mom_cpu_clock_infra::cpu_clock_end
mom_oda_driver_mod::get_bias_correction_tracer → mom_domain_infra::interface::pass_var
mom_oda_driver_mod::get_bias_correction_tracer → mom_horizontal_regridding::interface::horiz_interp_and_extrap_tracer
Callers call graph
- subroutine oda_end(CS)
Finalize DA module
- Parameters
CS [inout]
the ocean DA control structure
- subroutine init_ocean_ensemble(CS, Grid, GV, ens_size)
Initialize DA module
- Parameters
CS
Pointer to ODA control structure
Grid
Pointer to ocean analysis grid
GV
Pointer to DA vertical grid
ens_size [in]
ensemble size
- subroutine set_analysis_time(Time, CS)
Set the next analysis time
- Parameters
Time [in]
the current model time
CS [inout]
the DA control structure
Callees call graph
External calls
- time_manager_mod
get_date (time_manager_mod::get_date)
- subroutine apply_oda_tracer_increments(dt, Time_end, G, GV, tv, h, CS)
Apply increments to tracers
- Parameters
dt [in]
The tracer timestep [T ~> s]
Time_end [in]
Time at the end of the interval
G [in]
ocean grid structure
GV [in]
The ocean's vertical grid structure
tv [inout]
A structure pointing to various thermodynamic variables
h [in]
layer thickness [H ~> m or kg m-2]
CS
the data assimilation structure
local variables
T_tend_inc
an adjustment to the temperature tendency [C T-1 ~> degC s-1]
S_tend_inc
an adjustment to the salinity tendency [S T-1 ~> ppt s-1]
T_tend
The temperature tendency adjustment from DA [C T-1 ~> degC s-1]
S_tend
The salinity tendency adjustment from DA [S T-1 ~> ppt s-1]
Callees call graph
Text view
mom_oda_driver_mod::apply_oda_tracer_increments → mom_cpu_clock_infra::cpu_clock_begin
mom_oda_driver_mod::apply_oda_tracer_increments → mom_cpu_clock_infra::cpu_clock_end
mom_oda_driver_mod::apply_oda_tracer_increments → mom_diag_mediator::diag_update_remap_grids
mom_oda_driver_mod::apply_oda_tracer_increments → mom_diag_mediator::disable_averaging
mom_oda_driver_mod::apply_oda_tracer_increments → mom_diag_mediator::enable_averaging
mom_oda_driver_mod::apply_oda_tracer_increments → mom_diag_mediator::interface::post_data
mom_oda_driver_mod::apply_oda_tracer_increments → mom_domain_infra::interface::pass_var
mom_oda_driver_mod::apply_oda_tracer_increments → mom_remapping::remapping_core_h
- subroutine set_up_global_tgrid(T_grid, CS, G)
Set up the grid of thicknesses at tracer points throughout the global domain
- Parameters
T_grid
global tracer grid
CS [in]
A pointer to DA control structure.
G
domain and grid information for ocean model