dyn_grid_impl Submodule

This module, part of the MPAS interface, integrates MPAS dynamical core with CAM-SIMA by implementing the necessary APIs and managing their interaction.

It reads and uses the information from MPAS mesh to initialize various model grids (e.g., dynamics, physics) for CAM-SIMA in terms of dynamics decomposition.


Uses

  • module~~dyn_grid_impl~~UsesGraph module~dyn_grid_impl dyn_grid_impl module~dyn_grid dyn_grid module~dyn_grid_impl->module~dyn_grid cam_grid_support cam_grid_support module~dyn_grid->cam_grid_support module~dyn_comp dyn_comp module~dyn_grid->module~dyn_comp module~dyn_mpas_subdriver dyn_mpas_subdriver module~dyn_comp->module~dyn_mpas_subdriver iso_fortran_env iso_fortran_env module~dyn_mpas_subdriver->iso_fortran_env mpas_derived_types mpas_derived_types module~dyn_mpas_subdriver->mpas_derived_types mpas_kind_types mpas_kind_types module~dyn_mpas_subdriver->mpas_kind_types mpi mpi module~dyn_mpas_subdriver->mpi

Subroutines

subroutine define_cam_grid()

This subroutine defines and registers four variants of dynamics grids in terms of dynamics decomposition. Their names are listed in dyn_grid_name and their corresponding ids can be determined by calling dyn_grid_id. * "mpas_cell": Grid that is centered at MPAS "cell" points. * "cam_cell": Grid that is also centered at MPAS "cell" points but uses standard CAM-SIMA coordinate and dimension names. * "mpas_edge": Grid that is centered at MPAS "edge" points. * "mpas_vertex": Grid that is centered at MPAS "vertex" points. (KCW, 2024-03-28)

Arguments

None

subroutine init_physics_grid()

Initialize physics grid in terms of dynamics decomposition. Provide grid and mapping information between global and local indexes to physics by calling phys_grid_init. (KCW, 2024-03-27)

Arguments

None

Initialize reference pressure for use by physics. (KCW, 2024-03-25)

Arguments

None

Module Functions

pure module function dyn_grid_id(name)

Helper function for returning grid id given its name. (KCW, 2024-03-27)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: name

Return Value integer


Module Subroutines

Inquire local and global mesh dimensions. Save them as protected module variables. (KCW, 2024-11-21)

Arguments

None

module subroutine model_grid_init()

Initialize various model grids (e.g., dynamics, physics) in terms of dynamics decomposition. Additionally, MPAS framework initialization and reading time-invariant (e.g., grid/mesh) variables are also being completed in this subroutine. (KCW, 2024-03-29)

Arguments

None