@@ -1296,51 +1296,51 @@ subroutine ModelSetRunClock(gcomp, rc)
12961296 call ESMF_LogWrite(subname// ' setting alarms for' // trim (name), ESMF_LOGMSG_INFO)
12971297
12981298 !- ---------------
1299- ! Restart alarm
1299+ ! Stop alarm
13001300 !- ---------------
1301- call NUOPC_CompAttributeGet(gcomp, name= " restart_option " , value= restart_option , rc= rc)
1301+ call NUOPC_CompAttributeGet(gcomp, name= " stop_option " , value= stop_option , rc= rc)
13021302 if (ChkErr(rc,__LINE__,u_FILE_u)) return
13031303
1304- call NUOPC_CompAttributeGet(gcomp, name= " restart_n " , value= cvalue, rc= rc)
1304+ call NUOPC_CompAttributeGet(gcomp, name= " stop_n " , value= cvalue, rc= rc)
13051305 if (ChkErr(rc,__LINE__,u_FILE_u)) return
1306- read (cvalue,* ) restart_n
1306+ read (cvalue,* ) stop_n
13071307
1308- call NUOPC_CompAttributeGet(gcomp, name= " restart_ymd " , value= cvalue, rc= rc)
1308+ call NUOPC_CompAttributeGet(gcomp, name= " stop_ymd " , value= cvalue, rc= rc)
13091309 if (ChkErr(rc,__LINE__,u_FILE_u)) return
1310- read (cvalue,* ) restart_ymd
1310+ read (cvalue,* ) stop_ymd
13111311
1312- call alarmInit(mclock, restart_alarm, restart_option , &
1313- opt_n = restart_n , &
1314- opt_ymd = restart_ymd , &
1312+ call alarmInit(mclock, stop_alarm, stop_option , &
1313+ opt_n = stop_n , &
1314+ opt_ymd = stop_ymd , &
13151315 RefTime = mcurrTime, &
1316- alarmname = ' alarm_restart ' , rc= rc)
1316+ alarmname = ' alarm_stop ' , rc= rc)
13171317 if (ChkErr(rc,__LINE__,u_FILE_u)) return
13181318
1319- call ESMF_AlarmSet(restart_alarm , clock= mclock, rc= rc)
1319+ call ESMF_AlarmSet(stop_alarm , clock= mclock, rc= rc)
13201320 if (ChkErr(rc,__LINE__,u_FILE_u)) return
13211321
13221322 !- ---------------
1323- ! Stop alarm
1323+ ! Restart alarm
13241324 !- ---------------
1325- call NUOPC_CompAttributeGet(gcomp, name= " stop_option " , value= stop_option , rc= rc)
1325+ call NUOPC_CompAttributeGet(gcomp, name= " restart_option " , value= restart_option , rc= rc)
13261326 if (ChkErr(rc,__LINE__,u_FILE_u)) return
13271327
1328- call NUOPC_CompAttributeGet(gcomp, name= " stop_n " , value= cvalue, rc= rc)
1328+ call NUOPC_CompAttributeGet(gcomp, name= " restart_n " , value= cvalue, rc= rc)
13291329 if (ChkErr(rc,__LINE__,u_FILE_u)) return
1330- read (cvalue,* ) stop_n
1330+ read (cvalue,* ) restart_n
13311331
1332- call NUOPC_CompAttributeGet(gcomp, name= " stop_ymd " , value= cvalue, rc= rc)
1332+ call NUOPC_CompAttributeGet(gcomp, name= " restart_ymd " , value= cvalue, rc= rc)
13331333 if (ChkErr(rc,__LINE__,u_FILE_u)) return
1334- read (cvalue,* ) stop_ymd
1334+ read (cvalue,* ) restart_ymd
13351335
1336- call alarmInit(mclock, stop_alarm, stop_option , &
1337- opt_n = stop_n , &
1338- opt_ymd = stop_ymd , &
1336+ call alarmInit(mclock, restart_alarm, restart_option , &
1337+ opt_n = restart_n , &
1338+ opt_ymd = restart_ymd , &
13391339 RefTime = mcurrTime, &
1340- alarmname = ' alarm_stop ' , rc= rc)
1340+ alarmname = ' alarm_restart ' , rc= rc)
13411341 if (ChkErr(rc,__LINE__,u_FILE_u)) return
13421342
1343- call ESMF_AlarmSet(stop_alarm , clock= mclock, rc= rc)
1343+ call ESMF_AlarmSet(restart_alarm , clock= mclock, rc= rc)
13441344 if (ChkErr(rc,__LINE__,u_FILE_u)) return
13451345
13461346 end if
0 commit comments