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. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
pure function inv2(J)result(invJ)! Computes the inverse of a 2x2 matrixreal(wp),dimension(2,2),intent(in)::Jreal(wp),dimension(2,2)::invJinvJ=reshape([J(2,2),-J(2,1),-J(1,2),J(1,1)],[2,2])invJ=invJ/det2(J)return end function inv2