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_comp::dyn_inquire_mesh_dimensions' |
subroutine dyn_inquire_mesh_dimensions() ! Module(s) from CAM-SIMA. use cam_logfile, only: debugout_debug, debugout_info use string_utils, only: stringify character(*), parameter :: subname = 'dyn_comp::dyn_inquire_mesh_dimensions' call dyn_debug_print(debugout_debug, subname // ' entered') call dyn_debug_print(debugout_info, 'Inquiring local and global mesh dimensions') 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