-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use GREGORIAN calendar when getting walltime in CMEPS
- Loading branch information
1 parent
ac15b5f
commit 59cb406
Showing
3 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
build/* | ||
bin/* | ||
Debug/* | ||
Release/* | ||
CMakeUserPresets.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/../CMEPS/mediator/med_phases_profile_mod.F90 b/med_phases_profile_mod.F90 | ||
index dadfb98..35e720f 100644 | ||
--- a/../CMEPS/mediator/med_phases_profile_mod.F90 | ||
+++ b/med_phases_profile_mod.F90 | ||
@@ -42,6 +42,7 @@ contains | ||
use ESMF , only : ESMF_ClockGetNextTime, ESMF_TimeGet, ESMF_ClockGet | ||
use ESMF , only : ESMF_ClockAdvance, ESMF_ClockSet, ESMF_ClockIsStopTime | ||
use ESMF , only : operator(-) | ||
+ use ESMF , only : ESMF_CALKIND_GREGORIAN | ||
use NUOPC , only : NUOPC_CompAttributeGet | ||
|
||
! write profile output | ||
@@ -170,7 +171,7 @@ contains | ||
call ESMF_TimeGet(nexttime, timestring=nexttimestr, rc=rc) | ||
if (med_utils_ChkErr(rc,__LINE__,u_FILE_u)) return | ||
! get current wall clock time | ||
- call ESMF_TimeSet(wallclocktime, rc=rc) | ||
+ call ESMF_TimeSet(wallclocktime, calkindflag=ESMF_CALKIND_GREGORIAN, rc=rc) | ||
if (med_utils_chkerr(rc,__LINE__,u_FILE_u)) return | ||
call ESMF_TimeSyncToRealTime(wallclocktime, rc=rc) | ||
if (med_utils_chkerr(rc,__LINE__,u_FILE_u)) return |