Inquire local and global mesh dimensions. Save them as protected module variables. (KCW, 2024-11-21)
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=*), | private, | parameter | :: | subname | = | 'dyn_grid::dyn_inquire_mesh_dimensions' |
module subroutine dyn_inquire_mesh_dimensions() ! Module(s) from CAM-SIMA. use cam_logfile, only: debugout_debug use dyn_comp, only: dyn_debug_print, mpas_dynamical_core use string_utils, only: stringify character(*), parameter :: subname = 'dyn_grid::dyn_inquire_mesh_dimensions' call dyn_debug_print(debugout_debug, subname // ' entered') call mpas_dynamical_core % get_local_mesh_dimension( & ncells, ncells_solve, nedges, nedges_solve, nvertices, nvertices_solve, nvertlevels) call mpas_dynamical_core % get_global_mesh_dimension( & ncells_global, nedges_global, nvertices_global, nvertlevels, ncells_max, nedges_max, & sphere_radius) call dyn_debug_print(debugout_debug, 'ncells_global = ' // stringify([ncells_global])) call dyn_debug_print(debugout_debug, 'nedges_global = ' // stringify([nedges_global])) call dyn_debug_print(debugout_debug, 'nvertices_global = ' // stringify([nvertices_global])) call dyn_debug_print(debugout_debug, 'nvertlevels = ' // stringify([nvertlevels])) call dyn_debug_print(debugout_debug, 'ncells_max = ' // stringify([ncells_max])) call dyn_debug_print(debugout_debug, 'nedges_max = ' // stringify([nedges_max])) call dyn_debug_print(debugout_debug, 'sphere_radius = ' // stringify([sphere_radius])) call dyn_debug_print(debugout_debug, subname // ' completed') end subroutine dyn_inquire_mesh_dimensions