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
pure function point_gradient(x,mu)result(grad)real(wp),dimension(3),intent(in)::xreal(wp),intent(in)::mureal(wp),dimension(3,3)::gradreal(wp)::xmag2,xmag,creal(wp),dimension(3)::xhatinteger::ixmag2=dot_product(x,x)xmag=sqrt(xmag2)xhat=x/xmagc=mu/(xmag2*xmag)grad=(three*c)*outer(xhat,xhat)do i=1,3grad(i,i)=grad(i,i)-cend do end function point_gradient