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
module subroutine setup_directory(dir_path,file_extensions)implicit nonecharacter(*),intent(in)::dir_pathcharacter(*),intent(in)::file_extensions(:)character(512)::commandlogical::existsinteger::iinquire(DIRECTORY=trim(adjustl(dir_path)),exist=exists)if(.not.exists)then#ifdef _WIN32command="mkdir "//'"'//trim(adjustl(dir_path))//'"'call system(command)#endif#ifdef __linux__command="mkdir -p "//'"'//trim(adjustl(dir_path))//'"'call system(command)#endifelse do i=1,size(file_extensions)#ifdef _WIN32command="del /Q "//'"'//trim(adjustl(dir_path))//"*"//trim(file_extensions(i))//'"'call system(command)#endif#ifdef __linux__command="rm -f "//trim(adjustl(dir_path))//"*"//trim(file_extensions(i))call system(command)#endifend do end if end subroutine setup_directory