We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae61417 commit fd111edCopy full SHA for fd111ed
share/nuopc_shr_methods.F90
@@ -616,10 +616,16 @@ subroutine alarmInit( clock, alarm, option, &
616
update_nextalarm = .false.
617
618
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(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 )
623
624
+ else
625
+ call ESMF_ClockGet(clock, TimeStep=AlarmInterval, rc=rc)
626
627
+ endif
628
+
629
AlarmInterval = AlarmInterval * opt_n
630
! timestepinterval*0 is 0 of kind ESMF_TimeStepInterval
631
if (mod(AlarmInterval, TimestepInterval) /= (timestepinterval*0)) then
0 commit comments