Skip to content

Commit

Permalink
Fix for regional domains
Browse files Browse the repository at this point in the history
Fixed a bug where model could not correctly initialize grids for regional domains
  • Loading branch information
kaiyuan-cheng committed Feb 7, 2021
1 parent 6a335ad commit 5640d80
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/fv_grid_tools.F90
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,7 @@ subroutine init_grid(Atm, grid_name, grid_file, npx, npy, npz, ndims, nregions,
call setup_aligned_nest(Atm)

else
!if(trim(grid_file) == 'INPUT/grid_spec.nc') then
if(Atm%flagstruct%grid_type < 0 ) then
if( trim(grid_file) == 'INPUT/grid_spec.nc' .or. Atm%flagstruct%grid_type < 0 ) then
call read_grid(Atm, grid_file, ndims, nregions, ng)
else

Expand Down

0 comments on commit 5640d80

Please sign in to comment.