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 incrementTableEntry
! SUBROUTINE INFORMATION:
! AUTHOR Jason Glazer
! DATE WRITTEN August 2006
! MODIFIED
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Manages the resizing of the TableEntry Array
! METHODOLOGY EMPLOYED:
! Simple assignments to public variables.
! REFERENCES:
! na
! USE STATEMENTS:
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
! na
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
IF (.NOT. ALLOCATED(tableEntry)) THEN
ALLOCATE(tableEntry(sizeIncrement))
sizeTableEntry = sizeIncrement
numTableEntry = 1
ELSE
numTableEntry = numTableEntry + 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 (numTableEntry .GT. sizeTableEntry) THEN
ALLOCATE(tableEntryCopy(sizeTableEntry))
tableEntryCopy = tableEntry
DEALLOCATE(tableEntry)
ALLOCATE(tableEntry(sizeTableEntry + sizeIncrement))
tableEntry(1:sizeTableEntry) = tableEntryCopy
DEALLOCATE(tableEntryCopy)
sizeTableEntry = sizeTableEntry + sizeIncrement
END IF
END IF
END SUBROUTINE incrementTableEntry