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) | :: | String | |||
integer, | intent(in) | :: | Day | |||
integer, | intent(in) | :: | Month | |||
logical, | intent(out) | :: | ErrorsFound |
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.
SUBROUTINE ValidateMonthDay(String,Day,Month,ErrorsFound)
! SUBROUTINE INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN August 2000
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine validates a potential Day, Month values, produces an error
! message when not valid, and sets error flag.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE DataInterfaces, ONLY: ShowSevereError
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: String ! REAL(r64) string being processed
INTEGER, INTENT(IN) :: Day
INTEGER, INTENT(IN) :: Month
LOGICAL, INTENT(OUT) :: ErrorsFound
! SUBROUTINE PARAMETER DEFINITIONS:
INTEGER, PARAMETER, DIMENSION(12) :: EndMonthDay=(/31,29,31,30,31,30,31,31,30,31,30,31/)
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
LOGICAL InternalError
InternalError=.false.
IF (Month < 1 .or. Month > 12) InternalError=.true.
IF (.not. InternalError) THEN
IF (Day < 1 .or. Day > EndMonthDay(Month)) InternalError=.true.
ENDIF
IF (InternalError) THEN
CALL ShowSevereError('Invalid Month Day date format='//TRIM(String))
ErrorsFound=.true.
ELSE
ErrorsFound=.false.
ENDIF
RETURN
END SUBROUTINE ValidateMonthDay