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.
SUBROUTINE ProduceMinMaxStringWStartMinute(String,DateValue,ReportFreq)
! SUBROUTINE INFORMATION:
! AUTHOR Linda K. Lawrie
! DATE WRITTEN January 2001
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine produces the appropriate min/max string depending
! on the reporting frequency. Used in Meter reporting.
! METHODOLOGY EMPLOYED:
! Prior to calling this routine, the basic value string will be
! produced, but DecodeMonDayHrMin will not have been called. Uses the MinutesPerTimeStep
! value to set the StartMinute.
! 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 :: HrFormat="(A,',',I2.2,':',I2.2)"
CHARACTER(len=*), PARAMETER :: DayFormat="(A,',',I2,',',I2.2,':',I2.2)"
CHARACTER(len=*), PARAMETER :: MonthFormat="(A,',',I2,',',I2,',',I2.2,':',I2.2)"
CHARACTER(len=*), PARAMETER :: EnvrnFormat="(A,',',I2,',',I2,',',I2,',',I2.2,':',I2.2)"
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER Mon,Day,Hour,Minute
INTEGER StartMinute
CHARACTER(len=40) TempString
CHARACTER(len=40) StrOut
TempString=ADJUSTL(String)
CALL DecodeMonDayHrMin(DateValue,Mon,Day,Hour,Minute)
SELECT CASE (ReportFreq)
CASE(1) ! Hourly -- used in meters
StartMinute=Minute-MinutesPerTimeStep+1
WRITE(StrOut,HrFormat) TRIM(TempString),StartMinute,Minute
CASE(2) ! Daily
StartMinute=Minute-MinutesPerTimeStep+1
WRITE(StrOut,DayFormat) TRIM(TempString),Hour,StartMinute,Minute
CASE(3) ! Monthly
StartMinute=Minute-MinutesPerTimeStep+1
WRITE(StrOut,MonthFormat) TRIM(TempString),Day,Hour,StartMinute,Minute
CASE(4) ! Environment
StartMinute=Minute-MinutesPerTimeStep+1
WRITE(StrOut,EnvrnFormat) TRIM(TempString),Mon,Day,Hour,StartMinute,Minute
CASE DEFAULT ! Each, TimeStep, Hourly dont have this
StrOut=BlankString
END SELECT
String=StrOut
RETURN
END SUBROUTINE ProduceMinMaxStringWStartMinute