Skip to content

Commit

Permalink
Increase MAXSUM parameter so orog code will work with C12.
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGayno-NOAA committed Nov 22, 2024
1 parent 20d3b1e commit 4612227
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sorc/orog_mask_tools.fd/orog.fd/mtnlm7_oclsm.F90
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ SUBROUTINE MAKEMT2(ZAVG,ZSLM,ORO,SLM,VAR,VAR4, &
real, intent(out) :: oro(im,jm)
real, intent(out) :: var(im,jm),var4(im,jm)

integer, parameter :: MAXSUM=20000000
integer, parameter :: MAXSUM=65000000
real, parameter :: D2R = 3.14159265358979/180.

real, dimension(:), allocatable :: hgt_1d, hgt_1d_all
Expand Down Expand Up @@ -637,7 +637,7 @@ SUBROUTINE MAKEMT2(ZAVG,ZSLM,ORO,SLM,VAR,VAR4, &
nsum_all = nsum_all+1
if(nsum_all > MAXSUM) then
print*, "FATAL ERROR: nsum_all is greater than MAXSUM,"
print*, "increase MAXSUM."
print*, "increase MAXSUM.", jst,jen
call ABORT()
endif
hgt_1d_all(nsum_all) = HEIGHT_ALL
Expand All @@ -656,7 +656,7 @@ SUBROUTINE MAKEMT2(ZAVG,ZSLM,ORO,SLM,VAR,VAR4, &
nsum = nsum+1
if(nsum > MAXSUM) then
print*, "FATAL ERROR: nsum is greater than MAXSUM,"
print*, "increase MAXSUM."
print*, "increase MAXSUM.", jst,jen
call ABORT()
endif
hgt_1d(nsum) = HEIGHT
Expand Down

0 comments on commit 4612227

Please sign in to comment.