Skip to content

Commit fd111ed

Browse files
committed
update to work with ufs
1 parent ae61417 commit fd111ed

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

share/nuopc_shr_methods.F90

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -616,10 +616,16 @@ subroutine alarmInit( clock, alarm, option, &
616616
update_nextalarm = .false.
617617

618618
case (optNSteps,trim(optNSteps)//'s')
619-
call ESMF_ClockGet(clock, TimeStep=TimestepInterval, rc=rc)
620-
if (ChkErr(rc,__LINE__,u_FILE_u)) return
621-
call ESMF_TimeIntervalSet(AlarmInterval, s=dtime_drv, rc=rc )
622-
if (ChkErr(rc,__LINE__,u_FILE_u)) return
619+
if(dtime_drv > 0) then
620+
call ESMF_ClockGet(clock, TimeStep=TimestepInterval, rc=rc)
621+
if (ChkErr(rc,__LINE__,u_FILE_u)) return
622+
call ESMF_TimeIntervalSet(AlarmInterval, s=dtime_drv, rc=rc )
623+
if (ChkErr(rc,__LINE__,u_FILE_u)) return
624+
else
625+
call ESMF_ClockGet(clock, TimeStep=AlarmInterval, rc=rc)
626+
if (ChkErr(rc,__LINE__,u_FILE_u)) return
627+
endif
628+
623629
AlarmInterval = AlarmInterval * opt_n
624630
! timestepinterval*0 is 0 of kind ESMF_TimeStepInterval
625631
if (mod(AlarmInterval, TimestepInterval) /= (timestepinterval*0)) then

0 commit comments

Comments
 (0)