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.
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.
Source Code
subroutine dealloc_state(igrid,s,dealloc_x)use mod_global_parametersinteger,intent(in)::igridtype(state)::slogical,intent(in)::dealloc_xdeallocate(s%w)if(stagger_grid)then deallocate(s%ws)if(record_electric_field)deallocate(s%we)end if if(dealloc_x)then if(nw_extra>0)deallocate(s%wextra)! the geometry in bgeo outlives the block, only drop the views on itnullify(s%x,s%ds,s%dvolume,s%surfaceC,s%dx)deallocate(s%is_physical_boundary)if(B0field)then deallocate(s%B0)deallocate(s%J0)end if if(number_equi_vars>0)then deallocate(s%equi_vars)end if else nullify(s%x,s%dx,s%ds,s%dvolume,s%surfaceC)nullify(s%is_physical_boundary)if(B0field)nullify(s%B0,s%J0)if(number_equi_vars>0)then nullify(s%equi_vars)end if if(nw_extra>0)nullify(s%wextra)end if end subroutine dealloc_state