Nodes of different colours represent the following:
Solid arrows point from a parent (sub)module to the submodule which is descended from it. Dashed arrows point from a module being used to the module or program unit using it. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | optional | :: | command | |||
integer, | optional | :: | length | |||
integer, | optional | :: | status |
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.
SUBROUTINE GET_COMMAND(command,length,status)
! SUBROUTINE INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN Feb 2007
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! <description>
! METHODOLOGY EMPLOYED:
! <description>
! REFERENCES:
! na
! USE STATEMENTS:
USE DFLIB
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*), OPTIONAL :: command
INTEGER, OPTIONAL :: length
INTEGER, OPTIONAL :: status
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: numargs
CHARACTER(len=255) :: commandline
CHARACTER(len=100) :: carg
INTEGER :: arg
numargs=NARGS()-1
commandline=' '
do arg=0,numargs
call get_command_argument(arg,carg)
if (arg == 0) then
commandline=carg
else
commandline=' '//trim(commandline)//carg
endif
enddo
if (present(command)) then
command=commandline
endif
if (present(length)) then
length=len_trim(commandline)
endif
if (present(status)) then
status = -1 ! not exactly correct
endif
RETURN
END SUBROUTINE GET_COMMAND