Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | ScheduleIndex |
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 GetScheduleType(ScheduleIndex) RESULT (TypeOfSchedule)
! FUNCTION INFORMATION:
! AUTHOR Jason Glazer
! DATE WRITTEN July 2007
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! This function returns the internal pointer to Schedule "ScheduleName".
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: ScheduleIndex
CHARACTER(len=MaxNameLength) :: TypeOfSchedule
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
INTEGER :: curSchType
IF (.not. ScheduleInputProcessed) THEN
CALL ProcessScheduleInput
ScheduleInputProcessed=.True.
ENDIF
IF ((ScheduleIndex .gt. 0) .AND. (ScheduleIndex .le. NumSchedules)) THEN
curSchType = Schedule(ScheduleIndex)%ScheduleTypePtr
IF ((curSchType .gt. 0) .AND. (curSchType .le. NumScheduleTypes)) THEN
TypeOfSchedule = ScheduleType(curSchType)%Name
ELSE
TypeOfSchedule = ''
END IF
ELSE
TypeOfSchedule = ''
ENDIF
END FUNCTION GetScheduleType