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.
Variables
Type
Visibility
Attributes
Name
Initial
integer,
private
::
end_pos
integer,
private
::
start_pos
Source Code
function get_molecule_name(filename)result(name)!! Extract molecule name from filename!! Example: "output_multi_structure_molecule_1.json" -> "molecule_1"character(len=*),intent(in)::filenamecharacter(len=256)::nameinteger::start_pos,end_pos! Find "_molecule_" or similar patternstart_pos=index(filename,'_molecule_')if(start_pos==0)start_pos=index(filename,'_mol_')if(start_pos>0)thenstart_pos=start_pos+1! Skip leading underscoreend_pos=index(filename,'.json')-1if(end_pos>start_pos)thenname=filename(start_pos:end_pos)elsename="unknown"end if elsename="unknown"end if end function get_molecule_name