Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | ActuatorNodeNum | |||
integer, | intent(out) | :: | iNodeType | |||
logical, | intent(out) | :: | NodeNotFound |
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 CheckActuatorNode(ActuatorNodeNum, iNodeType, NodeNotFound)
! SUBROUTINE INFORMATION:
! AUTHOR Fred Buhl
! DATE WRITTEN January 2009
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! This subroutine checks that the input actuator node number is matched by
! the water inlet node number of some water coil
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: ActuatorNodeNum ! input actuator node number
INTEGER, INTENT(OUT) :: iNodeType ! Cooling or Heating or 0
LOGICAL, INTENT(OUT) :: NodeNotFound ! true if matching water inlet node not found
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
INTEGER :: WhichCoil
INTEGER :: CoilNum
! Obtains and Allocates DXCoils
IF (GetWaterCoilsInputFlag) THEN
CALL GetWaterCoilInput
GetWaterCoilsInputFlag = .FALSE.
END IF
WhichCoil = 0
iNodeType = 0
NodeNotFound = .TRUE.
DO CoilNum=1,NumWaterCoils
IF (WaterCoil(CoilNum)%WaterInletNodeNum == ActuatorNodeNum) THEN
WhichCoil = CoilNum
iNodeType = WaterCoil(CoilNum)%WaterCoilType
NodeNotFound = .FALSE.
END IF
END DO
RETURN
END SUBROUTINE CheckActuatorNode