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.
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.
subroutine print_help(errormsg)use utilities,only:log_errorcharacter(len=*),optional::errormsgwrite(*,"(A)")&"usage: swim [options] [parameter-nml]",&"",&" parameter-nml path to the parameter namelist",&"",&"options:",&" -h, --help show this help message",&" -v, --version print version",&" -d, --defaults [module] print default parameters",&" -o, --output-variables print output variables (requires parameter-nml)"! End program either with error or silentlyif(present(errormsg))then write(*,*)! empty line btw help and errorcall log_error("print_help",errormsg)end if stop end subroutine print_help