Skip to content

Commit

Permalink
Merge pull request #86 from grantfirl/feature/fix_check_all_zero_allo…
Browse files Browse the repository at this point in the history
…c_RRFS

[production/RRFS.v1] Fix 'check all' using 0-sized allocations
  • Loading branch information
MatthewPyle-NOAA authored Mar 5, 2024
2 parents 65301dd + 82f4f03 commit 53413ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/fvGFS/atmosphere.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2113,7 +2113,7 @@ subroutine atmos_phys_driver_statein (IPD_Data, Atm_block,flip_vc)
IPD_Data(nb)%Statein%tgrs(ix,k) = _DBL_(_RL_(Atm(mygrid)%pt(i,j,k1)))
IPD_Data(nb)%Statein%ugrs(ix,k) = _DBL_(_RL_(Atm(mygrid)%ua(i,j,k1)))
IPD_Data(nb)%Statein%vgrs(ix,k) = _DBL_(_RL_(Atm(mygrid)%va(i,j,k1)))
if(associated(IPD_Data(nb)%Statein%wgrs) .and. .not. Atm(mygrid)%flagstruct%hydrostatic) then
if(size(IPD_Data(nb)%Statein%wgrs) > 0 .and. .not. Atm(mygrid)%flagstruct%hydrostatic) then
IPD_Data(nb)%Statein%wgrs(ix,k) = _DBL_(_RL_(Atm(mygrid)%w(i,j,k1)))
endif
IPD_Data(nb)%Statein%vvl(ix,k) = _DBL_(_RL_(Atm(mygrid)%omga(i,j,k1)))
Expand Down

0 comments on commit 53413ed

Please sign in to comment.