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 incrementSteps
! SUBROUTINE INFORMATION:
! AUTHOR Jason Glazer of GARD Analytics, Inc.
! DATE WRITTEN June 2004
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Increment the step array counter and if
! necessary increase the size of the array.
! METHODOLOGY EMPLOYED:
! REFERENCES:
! na
! USE STATEMENTS:
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
! SUBROUTINE PARAMETER DEFINITIONS:
INTEGER :: sizeIncrement = 100
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
IF (.NOT. ALLOCATED(steps)) THEN
ALLOCATE(steps(sizeIncrement))
sizeSteps = sizeIncrement
numSteps = 1
ELSE
numSteps = numSteps + 1
! if larger then current size then make a temporary array of the same
! type and put stuff into it while reallocating the main array
IF (numSteps .GT. sizeSteps) THEN
ALLOCATE(stepsCopy(sizeSteps))
stepsCopy = steps
DEALLOCATE(steps)
ALLOCATE(steps(sizeSteps + sizeIncrement))
steps(1:sizeSteps) = stepsCopy
DEALLOCATE(stepsCopy)
sizeSteps = sizeSteps + sizeIncrement
END IF
END IF
! initialize new record)
steps(numSteps) = 0
END SUBROUTINE incrementSteps