Skip to content

Commit ce1fb4a

Browse files
committed
Expand doc for time interval set from ISO string.
1 parent 8e63792 commit ce1fb4a

File tree

1 file changed

+22
-29
lines changed

1 file changed

+22
-29
lines changed

src/Infrastructure/TimeMgr/interface/ESMF_TimeInterval.F90

+22-29
Original file line numberDiff line numberDiff line change
@@ -3135,8 +3135,8 @@ end subroutine ESMF_ParseDurString
31353135
#undef ESMF_METHOD
31363136
#define ESMF_METHOD "ESMF_TimeIntervalSetStr()"
31373137
!BOP
3138-
!\label{API:TimeIntervalSetStr}
3139-
! !IROUTINE: ESMF_TimeIntervalSet - Initialize or set a TimeInterval from ISO format string
3138+
! !IROUTINE: ESMF_TimeIntervalSet - Initialize or set a TimeInterval from an ISO format string
3139+
! \label{API:TimeIntervalSetStr}
31403140

31413141
! !INTERFACE:
31423142
! Private name; call using ESMF_TimeIntervalSet()
@@ -3152,8 +3152,7 @@ subroutine ESMF_TimeIntervalSetStr(timeinterval, timeIntervalString, rc)
31523152
!
31533153
! !DESCRIPTION:
31543154
! Sets the value of the {\tt ESMF\_TimeInterval} using a user specified
3155-
! string in ISO duration format P[y]Y[mm]M[d]DT[h]H[m]M[s]S. See ~\cite{ISO} and ~\cite{ISOnotes} for information about the format. In ESMF's implementation
3156-
! the time values can have the following types:
3155+
! string in ISO duration format P[y]Y[mm]M[d]DT[h]H[m]M[s]S. See ~\cite{ISO} and ~\cite{ISOnotes} for information about the format. In ESMF's implementation the time values can have the following types:
31573156
! \begin{description}
31583157
! \item[y] the number of years expressed in up to a 64-bit integer.
31593158
! \item[mm] the number of months expressed in up to a 64-bit integer.
@@ -3171,7 +3170,7 @@ subroutine ESMF_TimeIntervalSetStr(timeinterval, timeIntervalString, rc)
31713170
! \item[timeinterval]
31723171
! The object instance to initialize.
31733172
! \item[timeIntervalString]
3174-
! ISO format duration string (i.e. P[y]Y[mm]M[d]DT[h]H[m]M[s]S ).
3173+
! ISO format duration string (e.g. P[y]Y[mm]M[d]DT[h]H[m]M[s]S).
31753174
! \item[{[rc]}]
31763175
! Return code; equals {\tt ESMF\_SUCCESS} if there are no errors.
31773176
! \end{description}
@@ -3193,9 +3192,6 @@ subroutine ESMF_TimeIntervalSetStr(timeinterval, timeIntervalString, rc)
31933192
if (present(rc)) rc = ESMF_RC_NOT_IMPL
31943193
localrc = ESMF_RC_NOT_IMPL
31953194

3196-
! DEBUG OUTPUT:
3197-
!write(*,*) "Duration string is:",timeIntervalString
3198-
31993195
! Parse string into values for each time unit
32003196
call ESMF_ParseDurString(timeintervalString, &
32013197
yy_i8=yy_i8, mm_i8=mm_i8, d_i8=d_i8, d_r8=d_r8, &
@@ -3233,7 +3229,7 @@ end subroutine ESMF_TimeIntervalSetStr
32333229
#undef ESMF_METHOD
32343230
#define ESMF_METHOD "ESMF_TimeIntervalSetStrCal()"
32353231
!BOP
3236-
! !IROUTINE: ESMF_TimeIntervalSet - Initialize or set a TimeInterval from ISO format string
3232+
! !IROUTINE: ESMF_TimeIntervalSet - Initialize or set a TimeInterval from an ISO format string and calendar
32373233

32383234
! !INTERFACE:
32393235
! Private name; call using ESMF_TimeIntervalSet()
@@ -3253,7 +3249,7 @@ subroutine ESMF_TimeIntervalSetStrCal(timeinterval, calendar, &
32533249
! string in ISO duration format P[y]Y[mm]M[d]DT[h]H[m]M[s]S. See ~\cite{ISO} and ~\cite{ISOnotes} for
32543250
! information about the format. Also, see the description for the method
32553251
! {\tt ESMF\_TimeIntervalSetStr()}~\ref{API:TimeIntervalSetStr}
3256-
! for more details about the specific types supported by ESMF for the time values in the duration string.
3252+
! for the specific types supported by ESMF for the values in the duration string.
32573253
!
32583254
! The arguments are:
32593255
! \begin{description}
@@ -3269,7 +3265,7 @@ subroutine ESMF_TimeIntervalSetStrCal(timeinterval, calendar, &
32693265
! it contains a calendar. Alternate to, and mutually exclusive with,
32703266
! calkindflag below. Primarily for specifying a custom calendar kind.
32713267
! \item[timeIntervalString]
3272-
! ISO format duration string (i.e. P[y]Y[mm]M[d]DT[h]H[m]M[s]S ).
3268+
! ISO format duration string (e.g. P[y]Y[mm]M[d]DT[h]H[m]M[s]S).
32733269
! \item[{[rc]}]
32743270
! Return code; equals {\tt ESMF\_SUCCESS} if there are no errors.
32753271
! \end{description}
@@ -3291,9 +3287,6 @@ subroutine ESMF_TimeIntervalSetStrCal(timeinterval, calendar, &
32913287
if (present(rc)) rc = ESMF_RC_NOT_IMPL
32923288
localrc = ESMF_RC_NOT_IMPL
32933289

3294-
! DEBUG OUTPUT:
3295-
!write(*,*) "Duration string is:",timeIntervalString
3296-
32973290
! Parse string into values for each time unit
32983291
call ESMF_ParseDurString(timeintervalString, &
32993292
yy_i8=yy_i8, mm_i8=mm_i8, d_i8=d_i8, d_r8=d_r8, &
@@ -3332,7 +3325,7 @@ end subroutine ESMF_TimeIntervalSetStrCal
33323325
#undef ESMF_METHOD
33333326
#define ESMF_METHOD "ESMF_TimeIntervalSetStrCalTyp()"
33343327
!BOP
3335-
! !IROUTINE: ESMF_TimeIntervalSet - Initialize or set a TimeInterval from ISO format string
3328+
! !IROUTINE: ESMF_TimeIntervalSet - Initialize or set a TimeInterval from an ISO format string and calendar kind
33363329

33373330
! !INTERFACE:
33383331
! Private name; call using ESMF_TimeIntervalSet()
@@ -3348,8 +3341,11 @@ subroutine ESMF_TimeIntervalSetStrCalTyp(timeinterval, calkindflag, &
33483341
!
33493342
!
33503343
! !DESCRIPTION:
3351-
! Sets the value of the {\tt ESMF\_TimeInterval} using a user specified
3352-
! string in ISO duration format (P[n]Y[n]M[n]DT[n]H[n]M[n]S).
3344+
! Sets the value of the {\tt ESMF\_TimeInterval} using a user specified
3345+
! string in ISO duration format P[y]Y[mm]M[d]DT[h]H[m]M[s]S. See ~\cite{ISO} and ~\cite{ISOnotes} for
3346+
! information about the format. Also, see the description for the method
3347+
! {\tt ESMF\_TimeIntervalSetStr()}~\ref{API:TimeIntervalSetStr}
3348+
! for the specific types supported by ESMF for the values in the duration string.
33533349
!
33543350
! The arguments are:
33553351
! \begin{description}
@@ -3360,7 +3356,7 @@ subroutine ESMF_TimeIntervalSetStrCalTyp(timeinterval, calkindflag, &
33603356
! calendar above. More convenient way of specifying a built-in
33613357
! calendar kind.
33623358
! \item[timeIntervalString]
3363-
! ISO format duration string.
3359+
! ISO format duration string (e.g. P[y]Y[mm]M[d]DT[h]H[m]M[s]S).
33643360
! \item[{[rc]}]
33653361
! Return code; equals {\tt ESMF\_SUCCESS} if there are no errors.
33663362
! \end{description}
@@ -3382,10 +3378,7 @@ subroutine ESMF_TimeIntervalSetStrCalTyp(timeinterval, calkindflag, &
33823378
if (present(rc)) rc = ESMF_RC_NOT_IMPL
33833379
localrc = ESMF_RC_NOT_IMPL
33843380

3385-
! DEBUG OUTPUT:
3386-
!write(*,*) "Duration string is:",timeIntervalString
3387-
3388-
! Parse string into values for each time unit
3381+
! Parse string into values for each time unit
33893382
call ESMF_ParseDurString(timeintervalString, &
33903383
yy_i8=yy_i8, mm_i8=mm_i8, d_i8=d_i8, d_r8=d_r8, &
33913384
h_r8=h_r8, m_r8=m_r8, s_i8=s_i8, s_r8=s_r8, rc=localrc)
@@ -3421,7 +3414,7 @@ end subroutine ESMF_TimeIntervalSetStrCalTyp
34213414
#undef ESMF_METHOD
34223415
#define ESMF_METHOD "ESMF_TimeIntervalSetStrStart()"
34233416
!BOP
3424-
! !IROUTINE: ESMF_TimeIntervalSet - Initialize or set a TimeInterval from ISO format string
3417+
! !IROUTINE: ESMF_TimeIntervalSet - Initialize or set a TimeInterval from an ISO format string and start time
34253418

34263419
! !INTERFACE:
34273420
! Private name; call using ESMF_TimeIntervalSet()
@@ -3437,8 +3430,11 @@ subroutine ESMF_TimeIntervalSetStrStart(timeinterval, startTime, &
34373430
!
34383431
!
34393432
! !DESCRIPTION:
3440-
! Sets the value of the {\tt ESMF\_TimeInterval} using a user specified
3441-
! string in ISO duration format (P[n]Y[n]M[n]DT[n]H[n]M[n]S).
3433+
! Sets the value of the {\tt ESMF\_TimeInterval} using a user specified
3434+
! string in ISO duration format P[y]Y[mm]M[d]DT[h]H[m]M[s]S. See ~\cite{ISO} and ~\cite{ISOnotes} for
3435+
! information about the format. Also, see the description for the method
3436+
! {\tt ESMF\_TimeIntervalSetStr()}~\ref{API:TimeIntervalSetStr}
3437+
! for the specific types supported by ESMF for the values in the duration string.
34423438
!
34433439
! The arguments are:
34443440
! \begin{description}
@@ -3450,7 +3446,7 @@ subroutine ESMF_TimeIntervalSetStrStart(timeinterval, startTime, &
34503446
! in time. If not set, and calendar also not set, calendar interval
34513447
! "floats" across all calendars and times.
34523448
! \item[timeIntervalString]
3453-
! ISO format duration string.
3449+
! ISO format duration string (e.g. P[y]Y[mm]M[d]DT[h]H[m]M[s]S).
34543450
! \item[{[rc]}]
34553451
! Return code; equals {\tt ESMF\_SUCCESS} if there are no errors.
34563452
! \end{description}
@@ -3472,9 +3468,6 @@ subroutine ESMF_TimeIntervalSetStrStart(timeinterval, startTime, &
34723468
if (present(rc)) rc = ESMF_RC_NOT_IMPL
34733469
localrc = ESMF_RC_NOT_IMPL
34743470

3475-
! DEBUG OUTPUT:
3476-
!write(*,*) "Duration string is:",timeIntervalString
3477-
34783471
! Parse string into values for each time unit
34793472
call ESMF_ParseDurString(timeintervalString, &
34803473
yy_i8=yy_i8, mm_i8=mm_i8, d_i8=d_i8, d_r8=d_r8, &

0 commit comments

Comments
 (0)