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.
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 allocate_collapsed(dir)use mod_global_parametersinteger,intent(in)::dirinteger::dim1,dim2,dim3integer::nx1,nx2,nx3!-----------------------------------------------------------------------------! allocate array for the collapsed data:! number of cells per grid.nx1=ixMhi1-ixMlo1+1;nx2=ixMhi2-ixMlo2+1;nx3=ixMhi3-ixMlo3+1;dim1=ng1(1)*2**(collapselevel-1)*nx1dim2=ng2(1)*2**(collapselevel-1)*nx2dim3=ng3(1)*2**(collapselevel-1)*nx3select case(dir)case(1)allocate(collapsedData(dim2,dim3,nw+nwauxio))case(2)allocate(collapsedData(dim1,dim3,nw+nwauxio))case(3)allocate(collapsedData(dim1,dim2,nw+nwauxio))case defaultcall mpistop("slice direction not clear in allocate_collapsed")end selectcollapsedData=zeroend subroutine allocate_collapsed