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.
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.
Source Code
subroutine unit_test_cx1(this,res,expected,tol,msg)class(unit_test),intent(inout)::thiscomplex(rk),intent(in),dimension(:)::res,expectedreal(rk),intent(in),optional::tolcharacter(*),intent(in),optional::msglogical::conditionreal(rk)::rel_err_re,rel_err_imif(present(msg))thenthis%msg=msgelsethis%msg='forunittest'end if if(norm2(real(expected,rk))<tiny(0.0_rk))thenrel_err_re=norm2(real(res,rk)-real(expected,rk))elserel_err_re=norm2(real(res,rk)-real(expected,rk))/norm2(real(expected,rk))end if if(norm2(aimag(expected))<tiny(0.0_rk))thenrel_err_im=norm2(aimag(res)-aimag(expected))elserel_err_im=norm2(aimag(res)-aimag(expected))/norm2(aimag(expected))end if if(present(tol))thencondition=(rel_err_re<tol).and.(rel_err_im<tol)elsecondition=(rel_err_re<=tiny(0.0_rk)).and.(rel_err_im<=tiny(0.0_rk))end if call this%print_msg(condition)end subroutine unit_test_cx1