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.
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.
FUNCTION CheckValidSimulationObjects() RESULT (ValidSimulation)
! FUNCTION INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN July 2008
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! If an input file presents with surfaces but no zones, there are certain objects
! that must be present for the simulation to be valid. This check was necessitated by
! an input file that was entirely detached shading surfaces but no zones (and nothing else).
! Other objects include Solar Collectors, PV arrays.
! METHODOLOGY EMPLOYED:
! Check for specific objects that must be present for such a simulation to be valid.
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY: GetNumObjectsFound
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
LOGICAL :: ValidSimulation ! True is other objects appear to make this a valid simulation.
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
! na
ValidSimulation = .false.
IF (GetNumObjectsFound('SolarCollector:FlatPlate:Water') > 0) THEN
ValidSimulation=.true.
ELSEIF (GetNumObjectsFound('Generator:Photovoltaic') > 0) THEN
ValidSimulation=.true.
ELSEIF (GetNumObjectsFound('Generator:InternalCombustionEngine') > 0) THEN
ValidSimulation=.true.
ELSEIF (GetNumObjectsFound('Generator:CombustionTurbine') > 0) THEN
ValidSimulation=.true.
ELSEIF (GetNumObjectsFound('Generator:FuelCell') > 0) THEN
ValidSimulation=.true.
ELSEIF (GetNumObjectsFound('Generator:MicroCHP') > 0) THEN
ValidSimulation=.true.
ELSEIF (GetNumObjectsFound('Generator:MicroTurbine') > 0) THEN
ValidSimulation=.true.
ELSEIF (GetNumObjectsFound('Generator:WindTurbine') > 0) THEN
ValidSimulation=.true.
ENDIF
RETURN
END FUNCTION CheckValidSimulationObjects