Skip to content

Commit

Permalink
Merge pull request NOAA-EMC#31 from EricJames-NOAA/uh_fix
Browse files Browse the repository at this point in the history
Adding a check for extremely large positive or negative UH values
  • Loading branch information
hu5970 authored Jun 8, 2022
2 parents a86eab7 + e51b14a commit 52a3606
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sorc/ncep_post.fd/CALUPDHEL.f
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,14 @@ SUBROUTINE CALUPDHEL(UPDHEL)

UPDHEL(I,J)=UPDHEL(I,J)+(DVDX-DUDY)*WH(I,J,L)*DZ

IF (UPDHEL(I,J) < -9E10 .OR. UPDHEL(I,J) > 9E10) THEN
UPDHEL(I,J) = spval
ENDIF

ENDIF
ENDDO l_loop
ENDDO
ENDDO

!
! print*,'jsta_m, jend_m in calupdhel= ',jsta_m,jend_m
!
Expand Down

0 comments on commit 52a3606

Please sign in to comment.