Skip to content

Commit

Permalink
1)Initialize aextc55 and extco55 as 0 in ALLOCATE_ALL.f; 2) Add bug f…
Browse files Browse the repository at this point in the history
…ix of SNFALB in FIXED.f. (NOAA-EMC#301)
  • Loading branch information
WenMeng-NOAA authored Apr 16, 2021
1 parent 5fd6e8d commit 956fff6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 5 additions & 3 deletions sorc/ncep_post.fd/ALLOCATE_ALL.f
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
!! - 19-07-24 Li(Kate) Zhang - Merge and update NGAC UPP for FV3-Chem
!! - 19-11-23 Wen Meng - Add sea ice skin T
!! - 20-11-06 Jesse Meng - Add UPP_MATH module variables
!! - 21-04-06 Wen Meng - Initilizing all allocated arrays
!! - 21-04-06 Wen Meng - Initializing all allocated arrays
!! - 21-04-16 Wen Meng - Initializing aextc55 and extc55 as 0. These
!! two arrays are involved in GSL visibility computation.
!!
!! OUTPUT FILES:
!! - STDOUT - RUN TIME STANDARD OUT.
Expand Down Expand Up @@ -162,8 +164,8 @@ SUBROUTINE ALLOCATE_ALL()
QQNWFA(i,j,l)=spval
QQNIFA(i,j,l)=spval
TAOD5503D(i,j,l)=spval
AEXTC55(i,j,l)=spval
EXTCOF55(i,j,l)=spval
AEXTC55(i,j,l)=0.
EXTCOF55(i,j,l)=0.
QC_BL(i,j,l)=spval
CFR(i,j,l)=spval
CFR_RAW(i,j,l)=spval
Expand Down
7 changes: 5 additions & 2 deletions sorc/ncep_post.fd/FIXED.f
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,11 @@ SUBROUTINE FIXED
!$omp parallel do private(i,j)
DO J=JSTA,JEND
DO I=1,IM
IF(ABS(ALBASE(I,J)-SPVAL)>SMALL) &
& GRID1(I,J) = ALBASE(I,J)*100.
IF(ABS(ALBASE(I,J)-SPVAL)>SMALL) THEN
GRID1(I,J) = ALBASE(I,J)*100.
ELSE
GRID1(I,J) = SPVAL
ENDIF
ENDDO
ENDDO
if(grib=='grib2') then
Expand Down

0 comments on commit 956fff6

Please sign in to comment.