Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict UPP computation from undefined points #306

Merged
merged 11 commits into from
May 3, 2021
Merged
Prev Previous commit
Next Next commit
20210429 Jesse Meng fix instantaneous surface SW in CLDRAD.f
  • Loading branch information
wx22mj authored and wx22mj committed Apr 29, 2021
commit 7dd1428277892be70ecc26692cf0b73385c5427f
6 changes: 3 additions & 3 deletions sorc/ncep_post.fd/CLDRAD.f
Original file line number Diff line number Diff line change
Expand Up @@ -3691,7 +3691,7 @@ SUBROUTINE CLDRAD
GRID1=SPVAL
DO J=JSTA,JEND
DO I=1,IM
IF(CZMEAN(I,J)<SPVAL.and.CZEN(I,J)<SPVAL) THEN
IF(RSWIN(I,J)<SPVAL) THEN
IF(CZMEAN(I,J)>1.E-6) THEN
FACTRS=CZEN(I,J)/CZMEAN(I,J)
ELSE
Expand Down Expand Up @@ -3745,7 +3745,7 @@ SUBROUTINE CLDRAD
!$omp parallel do private(i,j)
DO J=JSTA,JEND
DO I=1,IM
IF(CZMEAN(I,J)<SPVAL.and.CZEN(I,J)<SPVAL) THEN
IF(RSWOUT(I,J)<SPVAL) THEN
IF(CZMEAN(I,J)>1.E-6) THEN
FACTRS=CZEN(I,J)/CZMEAN(I,J)
ELSE
Expand Down Expand Up @@ -3842,7 +3842,7 @@ SUBROUTINE CLDRAD
!$omp parallel do private(i,j)
DO J=JSTA,JEND
DO I=1,IM
IF(CZMEAN(I,J)<SPVAL.and.CZEN(I,J)<SPVAL) THEN
IF(RSWINC(I,J)<SPVAL) THEN
IF(CZMEAN(I,J)>1.E-6) THEN
FACTRS=CZEN(I,J)/CZMEAN(I,J)
ELSE
Expand Down