Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | SectionWord |
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.
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.
INTEGER FUNCTION GetNumSectionsFound(SectionWord)
! FUNCTION INFORMATION:
! AUTHOR Linda K. Lawrie
! DATE WRITTEN September 1997
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This function returns the number of a particular section (in input data file)
! found in the current run. If it can't find the section in list
! of sections, a -1 will be returned.
! METHODOLOGY EMPLOYED:
! Look up section in list of sections. If there, return the
! number of sections of that kind found in the current input. If not, return
! -1.
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: SectionWord
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER Found
Found=FindIteminList(MakeUPPERCase(SectionWord),ListofSections,NumSectionDefs)
IF (Found == 0) THEN
! CALL ShowFatalError('Requested Section not found in Definitions: '//TRIM(SectionWord))
GetNumSectionsFound=0
ELSE
GetNumSectionsFound=SectionDef(Found)%NumFound
ENDIF
RETURN
END FUNCTION GetNumSectionsFound