Skip to content

Commit

Permalink
Remove some unused logic from the orog program.
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGayno-NOAA committed Nov 21, 2024
1 parent 91c08f4 commit 20d3b1e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions sorc/orog_mask_tools.fd/orog.fd/mtnlm7_oclsm.F90
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,6 @@ SUBROUTINE MAKE_MASK(zslm,slm,land_frac, &
real, intent(out) :: slm(im,jm)
real, intent(out) :: land_frac(im,jm)

integer, parameter :: MAXSUM=20000000

real, parameter :: D2R = 3.14159265358979/180.

integer jst, jen
Expand Down Expand Up @@ -486,11 +484,6 @@ SUBROUTINE MAKE_MASK(zslm,slm,land_frac, &
XWATR_ALL = XWATR_ALL + FLOAT(1-ZSLM(ii,jj))
XNSUM_ALL = XNSUM_ALL + 1.
nsum_all = nsum_all+1
if(nsum_all > MAXSUM) then
print*, "FATAL ERROR: nsum_all is greater than MAXSUM,"
print*, "increase MAXSUM."
call ABORT()
endif

if(inside_a_polygon(LONI*D2R,LATI*D2R,4, &
LONO_RAD,LATO_RAD))then
Expand All @@ -499,11 +492,6 @@ SUBROUTINE MAKE_MASK(zslm,slm,land_frac, &
XWATR = XWATR + FLOAT(1-ZSLM(ii,jj))
XNSUM = XNSUM + 1.
nsum = nsum+1
if(nsum > MAXSUM) then
print*, "FATAL ERROR: nsum is greater than MAXSUM,"
print*, "increase MAXSUM."
call ABORT()
endif
endif
enddo ; enddo

Expand Down

0 comments on commit 20d3b1e

Please sign in to comment.