Skip to content

Commit 57d50f5

Browse files
restart_fh using shr_is_restart_fh_mod
1 parent 24e9eed commit 57d50f5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

mediator/med_phases_restart_mod.F90

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ module med_phases_restart_mod
1414
use med_phases_prep_glc_mod , only : FBocnAccum2glc_o, ocnAccum2glc_cnt
1515
use med_phases_prep_rof_mod , only : FBlndAccum2rof_l, lndAccum2rof_cnt
1616
use pio , only : file_desc_t
17+
#ifndef CESMCOUPLED
18+
use shr_is_restart_fh_mod, only : init_is_restart_fh, is_restart_fh, write_restartfh
19+
#endif
1720
implicit none
1821
private
1922

@@ -115,6 +118,10 @@ subroutine med_phases_restart_alarm_init(gcomp, rc)
115118
write(logunit,*)
116119
end if
117120

121+
#ifndef CESMCOUPLED
122+
call init_is_restart_fh(mcurrtime, timestep_length,maintask)
123+
#endif
124+
118125
end subroutine med_phases_restart_alarm_init
119126

120127
!===============================================================================
@@ -244,6 +251,11 @@ subroutine med_phases_restart_write(gcomp, rc)
244251
endif
245252
endif
246253

254+
#ifndef CESMCOUPLED
255+
write_restartfh = is_restart_fh(clock)
256+
if (write_restartfh) alarmIsOn = .true.
257+
#endif
258+
247259
if (alarmIsOn) then
248260
call ESMF_ClockGet(clock, currtime=currtime, starttime=starttime, rc=rc)
249261
if (ChkErr(rc,__LINE__,u_FILE_u)) return

0 commit comments

Comments
 (0)