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.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
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.
program demo! Include module for data type definitionsuse kinds! Use 'forunittest' module to access the unit_test typeuse forunittest,only:unit_testimplicit none! Declare an object of type 'unit_test'type(unit_test)::ut! call ut%check(res, expected, tol, msg)! Variables 'res' and 'expected' can be of types: real(rk), integer(ik), logical, or complex(rk)! Their ranks can be 0, 1, or 2! 'tol' is an optional real(rk) parameter, default value is 'tiny(0.0_rk)'! 'msg' is an optional character parameter, default value is 'forunittest'! Note: 'res' and 'expected' must have the same type and shapecall ut%check(res=1.0_rk,expected=1.0_rk,tol=1e-5_rk,msg="demo test 1")call ut%check(res=2.0_rk,expected=1.0_rk,tol=1e-5_rk,msg="demo test 2")end program demo