Skip to content

Commit 680833a

Browse files
authored
Merge pull request #2912 from ekluzek/cesm3_0_beta05_submodules
Update submodules to ones consistent with the cesm3_0_beta05 rpointer updates
2 parents 9c4d3dc + 7b88335 commit 680833a

File tree

10 files changed

+39
-43
lines changed

10 files changed

+39
-43
lines changed

.gitmodules

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fxDONOTUSEurl = https://github.com/NCAR/fates-release
3636
[submodule "cism"]
3737
path = components/cism
3838
url = https://github.com/ESCOMP/CISM-wrapper
39-
fxtag = cismwrap_2_2_002
39+
fxtag = cismwrap_2_2_005
4040
fxrequired = ToplevelRequired
4141
# Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed
4242
fxDONOTUSEurl = https://github.com/ESCOMP/CISM-wrapper
@@ -60,31 +60,31 @@ fxDONOTUSEurl = https://github.com/ESCOMP/MOSART
6060
[submodule "mizuRoute"]
6161
path = components/mizuRoute
6262
url = https://github.com/ESCOMP/mizuRoute
63-
fxtag = cesm-coupling.n02_v2.1.3
63+
fxtag = cesm-coupling.n03_v2.2.0
6464
fxrequired = ToplevelRequired
6565
# Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed
6666
fxDONOTUSEurl = https://github.com/ESCOMP/mizuRoute
6767

6868
[submodule "ccs_config"]
6969
path = ccs_config
7070
url = https://github.com/ESMCI/ccs_config_cesm.git
71-
fxtag = ccs_config_cesm1.0.10
71+
fxtag = ccs_config_cesm1.0.16
7272
fxrequired = ToplevelRequired
7373
# Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed
7474
fxDONOTUSEurl = https://github.com/ESMCI/ccs_config_cesm.git
7575

7676
[submodule "cime"]
7777
path = cime
7878
url = https://github.com/ESMCI/cime
79-
fxtag = cime6.1.49
79+
fxtag = cime6.1.59
8080
fxrequired = ToplevelRequired
8181
# Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed
8282
fxDONOTUSEurl = https://github.com/ESMCI/cime
8383

8484
[submodule "cmeps"]
8585
path = components/cmeps
8686
url = https://github.com/ESCOMP/CMEPS.git
87-
fxtag = cmeps1.0.32
87+
fxtag = cmeps1.0.33
8888
fxrequired = ToplevelRequired
8989
# Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed
9090
fxDONOTUSEurl = https://github.com/ESCOMP/CMEPS.git
@@ -100,7 +100,7 @@ fxDONOTUSEurl = https://github.com/ESCOMP/CDEPS.git
100100
[submodule "share"]
101101
path = share
102102
url = https://github.com/ESCOMP/CESM_share
103-
fxtag = share1.1.6
103+
fxtag = share1.1.7
104104
fxrequired = ToplevelRequired
105105
# Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed
106106
fxDONOTUSEurl = https://github.com/ESCOMP/CESM_share

components/cmeps

components/mizuRoute

Submodule mizuRoute updated 202 files

share

src/cpl/lilac/lnd_comp_esmf.F90

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ subroutine lnd_init(comp, import_state, export_state, clock, rc)
374374
!--------------------------------
375375
! Finish initializing ctsm
376376
!--------------------------------
377-
call initialize2(ni,nj)
377+
call initialize2(ni,nj, currTime)
378378
call ESMF_LogWrite(subname//"ctsm initialize2 done...", ESMF_LOGMSG_INFO)
379379

380380
!--------------------------------
@@ -708,41 +708,41 @@ subroutine lnd_run(gcomp, import_state, export_state, clock, rc)
708708
call update_rad_dtime(doalb)
709709

710710
!--------------------------------
711-
! Determine if time to write restart
711+
! Determine if time to stop
712712
!--------------------------------
713713

714-
call ESMF_ClockGetAlarm(clock, alarmname='lilac_restart_alarm', alarm=alarm, rc=rc)
714+
call ESMF_ClockGetAlarm(clock, alarmname='lilac_stop_alarm', alarm=alarm, rc=rc)
715715
if (ChkErr(rc,__LINE__,u_FILE_u)) return
716716

717717
if (ESMF_AlarmIsRinging(alarm, rc=rc)) then
718718
if (ChkErr(rc,__LINE__,u_FILE_u)) return
719-
rstwr = .true.
719+
nlend = .true.
720720
call ESMF_AlarmRingerOff( alarm, rc=rc )
721721
if (ChkErr(rc,__LINE__,u_FILE_u)) return
722722
else
723-
rstwr = .false.
723+
nlend = .false.
724724
endif
725725
if (masterproc) then
726-
write(iulog,*)' restart alarm is ',rstwr
726+
write(iulog,*)' stop alarm is ',nlend
727727
end if
728728

729729
!--------------------------------
730-
! Determine if time to stop
730+
! Determine if time to write restart
731731
!--------------------------------
732732

733-
call ESMF_ClockGetAlarm(clock, alarmname='lilac_stop_alarm', alarm=alarm, rc=rc)
733+
call ESMF_ClockGetAlarm(clock, alarmname='lilac_restart_alarm', alarm=alarm, rc=rc)
734734
if (ChkErr(rc,__LINE__,u_FILE_u)) return
735735

736736
if (ESMF_AlarmIsRinging(alarm, rc=rc)) then
737737
if (ChkErr(rc,__LINE__,u_FILE_u)) return
738-
nlend = .true.
738+
rstwr = .true.
739739
call ESMF_AlarmRingerOff( alarm, rc=rc )
740740
if (ChkErr(rc,__LINE__,u_FILE_u)) return
741741
else
742-
nlend = .false.
742+
rstwr = .false.
743743
endif
744744
if (masterproc) then
745-
write(iulog,*)' stop alarm is ',nlend
745+
write(iulog,*)' restart alarm is ',rstwr
746746
end if
747747

748748
!--------------------------------

src/cpl/nuopc/lnd_comp_nuopc.F90

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,9 +1040,10 @@ subroutine ModelSetRunClock(gcomp, rc)
10401040
if (ChkErr(rc,__LINE__,u_FILE_u)) return
10411041
call ESMF_LogWrite(subname//'setting alarms for ' // trim(name), ESMF_LOGMSG_INFO)
10421042

1043-
!----------------
1043+
!----------------------------------------------------------------------------------
10441044
! Stop alarm
1045-
!----------------
1045+
! MUST be set before the restart alarm in case restarts happen at the stop alarm
1046+
!----------------------------------------------------------------------------------
10461047
call NUOPC_CompAttributeGet(gcomp, name="stop_option", value=stop_option, rc=rc)
10471048
if (ChkErr(rc,__LINE__,u_FILE_u)) return
10481049

@@ -1064,9 +1065,10 @@ subroutine ModelSetRunClock(gcomp, rc)
10641065
call ESMF_AlarmSet(stop_alarm, clock=mclock, rc=rc)
10651066
if (ChkErr(rc,__LINE__,u_FILE_u)) return
10661067

1067-
!----------------
1068+
!----------------------------------------------------------------------------------
10681069
! Restart alarm
1069-
!----------------
1070+
! MUST be set after the stop alarm in case restarts happen at the stop alarm
1071+
!----------------------------------------------------------------------------------
10701072
call NUOPC_CompAttributeGet(gcomp, name="restart_option", value=restart_option, rc=rc)
10711073
if (ChkErr(rc,__LINE__,u_FILE_u)) return
10721074

src/utils/clm_time_manager.F90

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ module clm_time_manager
1919

2020
public ::&
2121
set_timemgr_init, &! setup startup values
22-
timemgr_init, &! time manager initialization
22+
timemgr_init, &! time manager initialization, called always
2323
timemgr_restart_io, &! read/write time manager restart info and restart time manager
24-
timemgr_restart, &! restart the time manager using info from timemgr_restart
24+
timemgr_restart, &! check that time manager is setup coorectly upcon restart
2525
timemgr_datediff, &! calculate difference between two time instants
2626
advance_timestep, &! increment timestep number
2727
get_curr_ESMF_Time, &! get current time in terms of the ESMF_Time
@@ -157,7 +157,7 @@ subroutine set_timemgr_init( calendar_in, start_ymd_in, start_tod_in, r
157157
!
158158
character(len=*), parameter :: sub = 'clm::set_timemgr_init'
159159

160-
if ( timemgr_set ) call shr_sys_abort( sub//":: timemgr_init or timemgr_restart already called" )
160+
if ( timemgr_set ) call shr_sys_abort( sub//":: timemgr_init already called" )
161161
if (present(calendar_in) ) calendar = trim(calendar_in)
162162
if (present(start_ymd_in) ) start_ymd = start_ymd_in
163163
if (present(start_tod_in) ) start_tod = start_tod_in
@@ -505,7 +505,10 @@ end subroutine timemgr_restart_io
505505
subroutine timemgr_restart()
506506

507507
!---------------------------------------------------------------------------------
508-
! Restart the ESMF time manager using the synclock for ending date.
508+
! On restart do some checkcing to make sure time is synchronized with the clock from CESM.
509+
! Set a couple of variables, and advance the clock, so time is aligned properly.
510+
!
511+
! timemgr_init MIST be called before this
509512
!
510513

511514
character(len=*), parameter :: sub = 'clm::timemgr_restart'
@@ -517,13 +520,10 @@ subroutine timemgr_restart()
517520
type(ESMF_TimeInterval) :: day_step_size ! day step size
518521
type(ESMF_TimeInterval) :: step_size ! timestep size
519522
!---------------------------------------------------------------------------------
520-
call timemgr_spmdbcast( )
521-
522-
! Initialize calendar from restart info
523-
524-
call init_calendar()
523+
! Check that timemgr_init was already called
524+
if ( .not. check_timemgr_initialized(sub) ) return
525525

526-
! Initialize the timestep from restart info
526+
! Initialize the timestep
527527

528528
dtime = rst_step_sec
529529

@@ -555,12 +555,6 @@ subroutine timemgr_restart()
555555

556556
tm_first_restart_step = .true.
557557

558-
! Print configuration summary to log file (stdout).
559-
560-
if (masterproc) call timemgr_print()
561-
562-
timemgr_set = .true.
563-
564558
end subroutine timemgr_restart
565559

566560
!=========================================================================================

0 commit comments

Comments
 (0)