Skip to content

Commit

Permalink
Merge pull request #88 from GEOS-ESM/hotfix/local-schmidt
Browse files Browse the repository at this point in the history
Update fv_grid_tools.F90
  • Loading branch information
mathomp4 authored Nov 28, 2023
2 parents 01276f2 + 3dcff25 commit f1a5b25
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tools/fv_grid_tools.F90
Original file line number Diff line number Diff line change
Expand Up @@ -772,11 +772,9 @@ subroutine init_grid(Atm, grid_name, grid_file, npx, npy, npz, ndims, nregions,
grid_local(:,:,1) = grid_local(:,:,1) + 2*pi
end where
where (abs(grid_local(:,:,:)) < 1.d-10) grid_local = 0
do n=1,nregions
call direct_transform(Atm%flagstruct%stretch_fac, is, ie+1, js, je+1, &
Atm%flagstruct%target_lon, Atm%flagstruct%target_lat, &
n, grid_local(:,:,1), grid_local(:,:,2))
enddo
call direct_transform(Atm%flagstruct%stretch_fac, is, ie+1, js, je+1, &
Atm%flagstruct%target_lon, Atm%flagstruct%target_lat, &
tile, grid_local(:,:,1), grid_local(:,:,2))
grid(is:ie+1,js:je+1,:) = grid_local(:,:,:)
deallocate(grid_local)
endif
Expand Down

0 comments on commit f1a5b25

Please sign in to comment.