Nodes of different colours represent the following:
Solid arrows point from a submodule to the (sub)module which it is
descended from. Dashed arrows point from a module or program unit to
modules which it uses.
Helper function for returning grid id given its name.
(KCW, 2024-03-27)
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Variables
Type
Visibility
Attributes
Name
Initial
integer,
private
::
i
Source Code
pure function dyn_grid_id(name)! Module(s) from CAM-SIMA.use physics_grid,only:phys_decompcharacter(*),intent(in)::nameinteger::dyn_grid_idinteger::ido i=1,size(dyn_grid_name)if(trim(adjustl(dyn_grid_name(i)))==trim(adjustl(name)))then! Grid ids count from `phys_decomp` + 1.! This avoids id collisions between dynamics and physics grids.dyn_grid_id=phys_decomp+ireturn end if end dodyn_grid_id=0end function dyn_grid_id