Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | FieldType | |||
character(len=*), | intent(in) | :: | FieldName | |||
character(len=*), | intent(in) | :: | FieldDescription | |||
real(kind=r64), | intent(in) | :: | FieldValue |
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 AddCompSizeTableEntry(FieldType,FieldName,FieldDescription,FieldValue)
! SUBROUTINE INFORMATION:
! AUTHOR Jason Glazer
! DATE WRITTEN July 2007
! MODIFIED
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Creates an entry for component size tables.
! 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:
CHARACTER(len=*),INTENT(IN) :: FieldType
CHARACTER(len=*),INTENT(IN) :: FieldName
CHARACTER(len=*),INTENT(IN) :: FieldDescription
REAL(r64),INTENT(IN) :: FieldValue
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
IF (.NOT. ALLOCATED(CompSizeTableEntry)) THEN
ALLOCATE(CompSizeTableEntry(sizeIncrement))
sizeCompSizeTableEntry = sizeIncrement
numCompSizeTableEntry = 1
ELSE
numCompSizeTableEntry = numCompSizeTableEntry + 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 (numCompSizeTableEntry .GT. sizeCompSizeTableEntry) THEN
ALLOCATE(CompSizeTableEntryCopy(sizeCompSizeTableEntry))
CompSizeTableEntryCopy = CompSizeTableEntry
DEALLOCATE(CompSizeTableEntry)
ALLOCATE(CompSizeTableEntry(sizeCompSizeTableEntry + sizeIncrement))
CompSizeTableEntry(1:sizeCompSizeTableEntry) = CompSizeTableEntryCopy
DEALLOCATE(CompSizeTableEntryCopy)
sizeCompSizeTableEntry = sizeCompSizeTableEntry + sizeIncrement
END IF
END IF
CompSizeTableEntry(numCompSizeTableEntry)%typeField = FieldType
CompSizeTableEntry(numCompSizeTableEntry)%nameField = FieldName
CompSizeTableEntry(numCompSizeTableEntry)%description = FieldDescription
CompSizeTableEntry(numCompSizeTableEntry)%valField = FieldValue
END SUBROUTINE AddCompSizeTableEntry