Nodes of different colours represent the following:
Solid arrows point from a parent (sub)module to the submodule which is descended from it. Dashed arrows point from a module being used to the module or program unit using it. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | Glycol |
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 FindGlycol(Glycol)
! FUNCTION INFORMATION:
! AUTHOR Rick Strand
! DATE WRITTEN May 2000
! MODIFIED Simon Rees (June 2002)
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! This function simply determines the index of the glycol named
! in the input variable to this routine within the derived type.
! METHODOLOGY EMPLOYED:
! Just checks to see whether or not the glycol name coming in can
! be found in the glycol derived type. If so, the function is set
! to the index within the derived type. If the input has not been read
! yet for some reason, that must be done.
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY: FindItemInList,MakeUPPERCase
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: Glycol ! carries in substance name
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
INTEGER :: Found ! Indicator for found item
! FLOW:
! Make sure we have already read in the input
IF (GetInput) THEN
CALL GetFluidPropertiesData
GetInput = .FALSE.
END IF
! Check to see if this glycol shows up in the glycol data
Found=FindItemInList(MakeUPPERCase(Glycol),GlycolData%Name,NumOfGlycols)
IF (Found > 0) THEN
FindGlycol=Found
GlycolUsed(Found)=.true.
ELSE ! return zero - error checking in calling proceedure
FindGlycol = 0
ENDIF
RETURN
END FUNCTION FindGlycol