Skip to content

Commit

Permalink
update to work with ufs
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Dec 16, 2024
1 parent ae61417 commit fd111ed
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions share/nuopc_shr_methods.F90
Original file line number Diff line number Diff line change
Expand Up @@ -616,10 +616,16 @@ subroutine alarmInit( clock, alarm, option, &
update_nextalarm = .false.

case (optNSteps,trim(optNSteps)//'s')
call ESMF_ClockGet(clock, TimeStep=TimestepInterval, rc=rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
call ESMF_TimeIntervalSet(AlarmInterval, s=dtime_drv, rc=rc )
if (ChkErr(rc,__LINE__,u_FILE_u)) return
if(dtime_drv > 0) then
call ESMF_ClockGet(clock, TimeStep=TimestepInterval, rc=rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
call ESMF_TimeIntervalSet(AlarmInterval, s=dtime_drv, rc=rc )
if (ChkErr(rc,__LINE__,u_FILE_u)) return
else
call ESMF_ClockGet(clock, TimeStep=AlarmInterval, rc=rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
endif

AlarmInterval = AlarmInterval * opt_n
! timestepinterval*0 is 0 of kind ESMF_TimeStepInterval
if (mod(AlarmInterval, TimestepInterval) /= (timestepinterval*0)) then
Expand Down

0 comments on commit fd111ed

Please sign in to comment.