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
character(len=256),
private
::
basename
integer,
private
::
dot_pos
integer,
private
::
slash_pos
Source Code
subroutine set_output_json_filename(input_filename)!! Set the JSON output filename based on input filename!! Example: "water.mqc" -> "output_water.json"character(len=*),intent(in)::input_filenameinteger::dot_pos,slash_poscharacter(len=256)::basename! Find last slash (if any) to extract basenameslash_pos=index(input_filename,'/',back=.true.)if(slash_pos>0)thenbasename=input_filename(slash_pos+1:)elsebasename=input_filenameend if! Find last dot to remove extensiondot_pos=index(basename,'.',back=.true.)if(dot_pos>0)thenbasename=basename(1:dot_pos-1)end if! Store basename for later usecurrent_basename=trim(basename)! Construct output filename: output_<basename>.jsonoutput_json_filename="output_"//trim(basename)//".json"end subroutine set_output_json_filename