Skip to content

Commit

Permalink
Fix bugs in FV3_zs_filter and two_delta_filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
RatkoVasic-NOAA committed Aug 25, 2021
1 parent dc72965 commit 06cc530
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sorc/grid_tools.fd/filter_topo.fd/filter_topo.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ subroutine FV3_zs_filter (is, ie, js, je, isd, ied, jsd, jed, npx, npy, npx_glob
real, intent(IN):: sin_sg(4,isd:ied,jsd:jed,ntiles)
real, intent(IN):: stretch_fac
logical, intent(IN) :: nested, regional
real, intent(inout):: phis(isd:ied,jsd,jed,ntiles)
real, intent(inout):: phis(isd:ied,jsd:jed,ntiles)
real:: cd2
integer mdim, n_del2, n_del4

Expand Down Expand Up @@ -1334,6 +1334,8 @@ subroutine two_delta_filter(is, ie, js, je, isd, ied, jsd, jed, npx, npy, ntiles
integer:: i,j, nt, t
integer:: is1, ie2, js1, je2

a2 = 0.

if ( .not. nested .and. grid_type<3 ) then
is1 = max(3,is-1); ie2 = min(npx-2,ie+2)
js1 = max(3,js-1); je2 = min(npy-2,je+2)
Expand Down

0 comments on commit 06cc530

Please sign in to comment.