Skip to content
21 changes: 17 additions & 4 deletions io/post_regional.F90
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ subroutine set_postvars_regional(wrt_int_state,mpicomp,setvar_atmfile, &
up_heli_max03,up_heli_min03,rel_vort_max01, &
rel_vort_max, rel_vort_maxhy1, refd_max, &
refdm10c_max, u10max, v10max, wspd10max, sfcuxi, &
sfcvxi
sfcvxi, t10m, t10avg, psfcavg, akhsavg, akmsavg
use soil, only: sldpth, sh2o, smc, stc
use masks, only: lmv, lmh, htm, vtm, gdlat, gdlon, dx, dy, hbm2, sm, sice
use ctlblk_mod, only: im, jm, lm, lp1, jsta, jend, jsta_2l, jend_2u, jsta_m,jend_m, &
Expand Down Expand Up @@ -829,6 +829,19 @@ subroutine set_postvars_regional(wrt_int_state,mpicomp,setvar_atmfile, &
enddo
enddo
!
!** temporary fix: initialize t10m, t10avg, psfcavg, akhsavg, akmsavg
!$omp parallel do default(none),private(i,j),shared(jsta_2l,jend_2u,im,spval), &
Comment thread
junwang-noaa marked this conversation as resolved.
Outdated
!$omp& shared(t10m,t10avg,psfcavg,akhsavg, akmsavg)
do j=jsta_2l,jend_2u
do i=1,im
t10m(i,j) = 0.
t10avg(i,j) = 0.
psfcavg(i,j) = 0.
akhsavg(i,j) = 0.
akmsavg(i,j) = 0.
enddo
enddo
!
!-----------------------------------------------------------------------------
! get post fields
!-----------------------------------------------------------------------------
Expand Down Expand Up @@ -1372,7 +1385,7 @@ subroutine set_postvars_regional(wrt_int_state,mpicomp,setvar_atmfile, &
else
islope(i,j) = 0
endif
if (abs(arrayr42d(i,j)-fillValue) < small) islope(i,j) = spval
if (abs(arrayr42d(i,j)-fillValue) < small) islope(i,j) = 0
enddo
enddo
endif
Expand Down Expand Up @@ -1925,7 +1938,7 @@ subroutine set_postvars_regional(wrt_int_state,mpicomp,setvar_atmfile, &
do i=ista, iend
if (arrayr42d(i,j) < spval) then
ivgtyp(i,j) = nint(arrayr42d(i,j))
if( abs(arrayr42d(i,j)-fillValue) < small) ivgtyp(i,j) = spval
if( abs(arrayr42d(i,j)-fillValue) < small) ivgtyp(i,j) = 0
else
ivgtyp(i,j) = 0
endif
Expand All @@ -1940,7 +1953,7 @@ subroutine set_postvars_regional(wrt_int_state,mpicomp,setvar_atmfile, &
do i=ista, iend
if (arrayr42d(i,j) < spval) then
isltyp(i,j) = nint(arrayr42d(i,j))
if( abs(arrayr42d(i,j)-fillValue) < small) isltyp(i,j) = spval
if( abs(arrayr42d(i,j)-fillValue) < small) isltyp(i,j) = 0
Comment thread
junwang-noaa marked this conversation as resolved.
else
isltyp(i,j) = 0
endif
Expand Down