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 reversing the order of elements in array.
(KCW, 2024-07-17)
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
::
n
Source Code
pure function reverse(array)! Module(s) from CESM Share.use shr_kind_mod,only:kind_r8=>shr_kind_r8real(kind_r8),intent(in)::array(:)real(kind_r8)::reverse(size(array))integer::nn=size(array)! There is nothing to reverse.if(n==0)then return end ifreverse(:)=array(n:1:-1)end function reverse