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) | :: | Refrigerant |
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 FindRefrigerant(Refrigerant)
! 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 refrigerant named
! in the input variable to this routine within the derived type.
! METHODOLOGY EMPLOYED:
! Just checks to see whether or not the refrigerant name coming in can
! be found in the refrigerant 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) :: Refrigerant ! 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(Refrigerant),RefrigData%Name,NumOfRefrigerants)
IF (Found > 0) THEN
FindRefrigerant = Found
RefrigUsed(Found)=.true.
ELSE ! not found - errors handled in calling proceedure
FindRefrigerant = 0
ENDIF
RETURN
END FUNCTION FindRefrigerant