Skip to content

Commit e4d7524

Browse files
committed
Merge branch 'support/lisf-public-7.5'
2 parents 12d02d2 + 06716e5 commit e4d7524

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

lis/core/LIS_historyMod.F90

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ module LIS_historyMod
6666
! used in GRIB1 & GRIB2 format
6767
! 18 Oct 2018: David Mocko: Check lis.config entry for option to turn off
6868
! writing ASCII stats files with netCDF output format
69+
! 25 Oct 2024: Mahdi Navari: updated the code to fix the bug in writing
70+
! model output in 2D ensemble grid space (see https://github.com/NASA-LIS/LISF/issues/1627 )
6971
!
7072
! !USES:
7173
use LIS_coreMod
@@ -3440,16 +3442,16 @@ subroutine defineNETCDFheaderVar(n,ftn,dimID, dataEntry, non_model_fields)
34403442
! lat/lon field output will write in 1D
34413443
if(LIS_rc%nlatlon_dimensions == '1D') then
34423444
if(nmodel_status.eq.1) then
3443-
call LIS_verify(nf90_def_var(ftn,trim(short_name),&
3445+
call LIS_verify(nf90_def_var(ftn,trim(dataEntry%short_name),&
34443446
nf90_float,&
34453447
dimids = dimID(2), varID=dataEntry%varId_def),&
3446-
'nf90_def_var for '//trim(short_name)//&
3448+
'nf90_def_var for '//trim(dataEntry%short_name)//&
34473449
'failed in defineNETCDFheadervar')
34483450
elseif(nmodel_status.eq.2) then
3449-
call LIS_verify(nf90_def_var(ftn,trim(short_name),&
3451+
call LIS_verify(nf90_def_var(ftn,trim(dataEntry%short_name),&
34503452
nf90_float,&
34513453
dimids = dimID(1), varID=dataEntry%varId_def),&
3452-
'nf90_def_var for '//trim(short_name)//&
3454+
'nf90_def_var for '//trim(dataEntry%short_name)//&
34533455
'failed in defineNETCDFheadervar')
34543456
else
34553457
call LIS_verify(nf90_def_var(ftn,trim(dataEntry%short_name)//'_tavg',&
@@ -3460,10 +3462,10 @@ subroutine defineNETCDFheaderVar(n,ftn,dimID, dataEntry, non_model_fields)
34603462
endif
34613463
! latlon field output will write in 2D
34623464
else
3463-
call LIS_verify(nf90_def_var(ftn,trim(short_name),&
3465+
call LIS_verify(nf90_def_var(ftn,trim(dataEntry%short_name),&
34643466
nf90_float,&
34653467
dimids = dimID(1:2), varID=dataEntry%varID_def),&
3466-
'nf90_def_var for '//trim(short_name)//&
3468+
'nf90_def_var for '//trim(dataEntry%short_name)//&
34673469
'failed in defineNETCDFheadervar')
34683470
endif
34693471

lis/surfacemodels/land/noahmp.4.0.1/irrigation/noahmp401_getirrigationstates.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ subroutine noahmp401_getirrigationstates(n,irrigState)
212212

213213
t=(i-1)*LIS_rc%nensem(n)+m
214214

215-
timestep = NOAHMP401_struc(n)%dt
215+
timestep = NOAHMP401_struc(n)%ts
216216
soiltyp = noahmp401_struc(n)%noahmp401(t)%soiltype
217217

218218

0 commit comments

Comments
 (0)