Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | Which | |||
character(len=*), | intent(out) | :: | ObjectWord | |||
character(len=*), | intent(out), | optional | DIMENSION(:) | :: | AlphaArgs | |
integer, | intent(out) | :: | NumAlpha | |||
real(kind=r64), | intent(out), | optional | DIMENSION(:) | :: | NumericArgs | |
integer, | intent(out) | :: | NumNumeric | |||
logical, | intent(out), | optional | DIMENSION(:) | :: | AlphaBlanks | |
logical, | intent(out), | optional | DIMENSION(:) | :: | NumericBlanks |
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 GetObjectItemfromFile(Which,ObjectWord,AlphaArgs,NumAlpha,NumericArgs,NumNumeric,AlphaBlanks,NumericBlanks)
! SUBROUTINE INFORMATION:
! AUTHOR Linda K. Lawrie
! DATE WRITTEN September 1997
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine "gets" the object instance from the data structure.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: Which
CHARACTER(len=*), INTENT(OUT) :: ObjectWord
CHARACTER(len=*), INTENT(OUT), DIMENSION(:), OPTIONAL :: AlphaArgs
INTEGER, INTENT(OUT) :: NumAlpha
REAL(r64), INTENT(OUT), DIMENSION(:), OPTIONAL :: NumericArgs
INTEGER, INTENT(OUT) :: NumNumeric
LOGICAL, INTENT(OUT), DIMENSION(:), OPTIONAL :: AlphaBlanks
LOGICAL, INTENT(OUT), DIMENSION(:), OPTIONAL :: NumericBlanks
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
TYPE (LineDefinition):: xLineItem ! Description of current record
IF (Which > 0 .and. Which <= NumIDFRecords) THEN
xLineItem=IDFRecords(Which)
ObjectWord=xLineItem%Name
NumAlpha=xLineItem%NumAlphas
NumNumeric=xLineItem%NumNumbers
IF (PRESENT(AlphaArgs)) THEN
IF (NumAlpha >=1) THEN
AlphaArgs(1:NumAlpha)=xLineItem%Alphas(1:NumAlpha)
ENDIF
ENDIF
IF (PRESENT(AlphaBlanks)) THEN
IF (NumAlpha >=1) THEN
AlphaBlanks(1:NumAlpha)=xLineItem%AlphBlank(1:NumAlpha)
ENDIF
ENDIF
IF (PRESENT(NumericArgs)) THEN
IF (NumNumeric >= 1) THEN
NumericArgs(1:NumNumeric)=xLineItem%Numbers(1:NumNumeric)
ENDIF
ENDIF
IF (PRESENT(NumericBlanks)) THEN
IF (NumNumeric >= 1) THEN
NumericBlanks(1:NumNumeric)=xLineItem%NumBlank(1:NumNumeric)
ENDIF
ENDIF
ELSE
WRITE(EchoInputFile,*) ' Requested Record',Which,' not in range, 1 -- ',NumIDFRecords
ENDIF
RETURN
END SUBROUTINE GetObjectItemfromFile