Skip to content

Commit 1e86b03

Browse files
authored
Merge pull request #1458 from dmocko/fix/noahmp401-alarms
Fixing Noah-MP-4.0.1 LSM restart and model alarms for multiple nests
2 parents d31401f + 69a8aa4 commit 1e86b03

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

lis/surfacemodels/land/noahmp.4.0.1/NoahMP401_lsmMod.F90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,18 +304,18 @@ subroutine NoahMP401_ini()
304304

305305
call LIS_update_timestep(LIS_rc, n, NOAHMP401_struc(n)%ts)
306306

307-
call LIS_registerAlarm("NoahMP401 model alarm",&
307+
write(fnest,'(i3.3)') n
308+
call LIS_registerAlarm("NoahMP401 model alarm "//trim(fnest),&
308309
NOAHMP401_struc(n)%ts, &
309310
NOAHMP401_struc(n)%ts)
310311

311-
call LIS_registerAlarm("NoahMP401 restart alarm", &
312+
call LIS_registerAlarm("NoahMP401 restart alarm "//trim(fnest), &
312313
NOAHMP401_struc(n)%ts,&
313314
NOAHMP401_struc(n)%rstInterval)
314315

315316
! EMK Add alarm to reset tair_agl_min for RHMin. This should
316317
! match the output interval, since that is used for calculating
317318
! Tair_F_min.
318-
write(fnest,'(i3.3)') n
319319
call LIS_registerAlarm("NoahMP401 RHMin alarm "//trim(fnest),&
320320
NOAHMP401_struc(n)%ts,&
321321
LIS_sfmodel_struc(n)%outInterval)

lis/surfacemodels/land/noahmp.4.0.1/NoahMP401_main.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ subroutine NoahMP401_main(n)
272272

273273
! check NoahMP401 alarm. If alarm is ring, run model.
274274

275-
alarmCheck = LIS_isAlarmRinging(LIS_rc, "NoahMP401 model alarm")
275+
write(fnest,'(i3.3)') n
276+
alarmCheck = LIS_isAlarmRinging(LIS_rc, "NoahMP401 model alarm "//trim(fnest))
276277

277278
if (alarmCheck) Then
278279
do t = 1, LIS_rc%npatch(n, LIS_rc%lsm_index)
@@ -1433,7 +1434,6 @@ subroutine NoahMP401_main(n)
14331434

14341435
! EMK...See if noahmp401_struc(n)%noahmp401(t)%tair_agl_min needs to be
14351436
! reset for calculating RHMin.
1436-
write(fnest,'(i3.3)') n
14371437
alarmCheck = LIS_isAlarmRinging(LIS_rc, &
14381438
"NoahMP401 RHMin alarm "//trim(fnest))
14391439
if (alarmCheck) then

lis/surfacemodels/land/noahmp.4.0.1/NoahMP401_writerst.F90

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ subroutine NoahMP401_writerst(n)
6060
logical :: alarmCheck
6161
integer :: ftn
6262
integer :: status
63+
character*3 :: fnest
6364

6465
! set restart alarm
65-
alarmCheck = LIS_isAlarmRinging(LIS_rc, "NoahMP401 restart alarm")
66+
write(fnest,'(i3.3)') n
67+
alarmCheck = LIS_isAlarmRinging(LIS_rc, "NoahMP401 restart alarm "//trim(fnest))
6668

6769
! set restart file format (read from LIS configration file_
6870
wformat = trim(NOAHMP401_struc(n)%rformat)

0 commit comments

Comments
 (0)