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(inout) | :: | String | |||
integer, | intent(in) | :: | DateValue | |||
integer, | intent(in) | :: | ReportFreq |
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 ProduceMinMaxString(String,DateValue,ReportFreq)
! SUBROUTINE INFORMATION:
! AUTHOR Linda K. Lawrie
! DATE WRITTEN December 1998
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine produces the appropriate min/max string depending
! on the reporting frequency.
! METHODOLOGY EMPLOYED:
! Prior to calling this routine, the basic value string will be
! produced, but DecodeMonDayHrMin will not have been called.
! REFERENCES:
! na
! USE STATEMENTS:
USE General, ONLY: DecodeMonDayHrMin
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*),INTENT(INOUT) :: String ! Current value
INTEGER, INTENT(IN) :: DateValue ! Date of min/max
INTEGER, INTENT(IN) :: ReportFreq ! Reporting Frequency
! SUBROUTINE PARAMETER DEFINITIONS:
CHARACTER(len=*), PARAMETER :: DayFormat="(A,',',I2,',',I2)"
CHARACTER(len=*), PARAMETER :: MonthFormat="(A,',',I2,',',I2,',',I2)"
CHARACTER(len=*), PARAMETER :: EnvrnFormat="(A,',',I2,',',I2,',',I2,',',I2)"
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER Mon,Day,Hour,Minute
CHARACTER(len=40) TempString
CHARACTER(len=40) StrOut
TempString=ADJUSTL(String)
CALL DecodeMonDayHrMin(DateValue,Mon,Day,Hour,Minute)
SELECT CASE (ReportFreq)
CASE(2) ! Daily
WRITE(StrOut,DayFormat) TRIM(TempString),Hour,Minute
CASE(3) ! Monthly
WRITE(StrOut,MonthFormat) TRIM(TempString),Day,Hour,Minute
CASE(4) ! Environment
WRITE(StrOut,EnvrnFormat) TRIM(TempString),Mon,Day,Hour,Minute
CASE DEFAULT ! Each, TimeStep, Hourly dont have this
StrOut=BlankString
END SELECT
String=StrOut
RETURN
END SUBROUTINE ProduceMinMaxString