diff --git a/lis/core/LIS_spatialDownscalingMod.F90 b/lis/core/LIS_spatialDownscalingMod.F90 index 7c64db53d..d0e02924b 100644 --- a/lis/core/LIS_spatialDownscalingMod.F90 +++ b/lis/core/LIS_spatialDownscalingMod.F90 @@ -163,6 +163,7 @@ subroutine LIS_lapseRateCorrection(nest, modelelev, lapseRate, LIS_FORC_Base_Sta force_prs = psurf(t) index = LIS_domain(nest)%tile(t)%index lapse = lapseRate(index) + elevdiff = LIS_domain(nest)%tile(t)%elev-& modelelev(index) tcforce=force_tmp+(lapse*elevdiff) diff --git a/lis/metforcing/merra2/read_merra2.F90 b/lis/metforcing/merra2/read_merra2.F90 index 621e348f2..842642a29 100644 --- a/lis/metforcing/merra2/read_merra2.F90 +++ b/lis/metforcing/merra2/read_merra2.F90 @@ -225,6 +225,8 @@ subroutine read_merra2(n, order, month, findex, & call interp_merra2_var(n,findex,month,vwind, 6, .false., merraforc) call interp_merra2_var(n,findex,month,ps, 7, .false., merraforc) + LIS_forc(n,findex)%lapseRate(:) = -0.0065 + if(merra2_struc(n)%usedynlapserate.eq.1) then inquire(file=trim(lapseratefname),exist=file_exists) @@ -255,10 +257,11 @@ subroutine read_merra2(n, order, month, findex, & do r=1,LIS_rc%lnr(n) do c=1,LIS_rc%lnc(n) if(LIS_domain(n)%gindex(c,r).ne.-1) then - - gid = LIS_domain(n)%gindex(c,r) - LIS_forc(n,findex)%lapseRate(gid) = & - lapse_rate_out(c+(r-1)*LIS_rc%lnc(n))/1000.0 + if(.not.isNaN(lapse_rate_out(c+(r-1)*LIS_rc%lnc(n)))) then + gid = LIS_domain(n)%gindex(c,r) + LIS_forc(n,findex)%lapseRate(gid) = & + lapse_rate_out(c+(r-1)*LIS_rc%lnc(n))/1000.0 + endif endif enddo enddo