Skip to content

Commit

Permalink
change associated to size for a couple variables in GFS_diagnostics a…
Browse files Browse the repository at this point in the history
…nd add one small change to atmos_cubed_sphere
  • Loading branch information
grantfirl committed Jan 19, 2024
1 parent 4dd5b36 commit 8e16345
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
[submodule "atmos_cubed_sphere"]
path = atmos_cubed_sphere
url = https://github.com/NOAA-GFDL/GFDL_atmos_cubed_sphere
branch = dev/emc
#url = https://github.com/NOAA-GFDL/GFDL_atmos_cubed_sphere
#branch = dev/emc
url = https://github.com/grantfirl/GFDL_atmos_cubed_sphere
branch = feature/fix_check_all_zero_alloc
[submodule "ccpp/framework"]
path = ccpp/framework
#url = https://github.com/NCAR/ccpp-framework
Expand Down
2 changes: 1 addition & 1 deletion atmos_cubed_sphere
4 changes: 2 additions & 2 deletions ccpp/driver/GFS_diagnostics.F90
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ subroutine GFS_externaldiag_populate (ExtDiag, Model, Statein, Stateout, Sfcprop

!--- air quality diagnostics ---
if (Model%cplaqm) then
if (associated(IntDiag(1)%aod)) then
if (size(IntDiag(1)%aod) > 0) then
idx = idx + 1
ExtDiag(idx)%axes = 2
ExtDiag(idx)%name = 'aod'
Expand Down Expand Up @@ -1887,7 +1887,7 @@ subroutine GFS_externaldiag_populate (ExtDiag, Model, Statein, Stateout, Sfcprop
enddo
endif

if(associated(Coupling(1)%htrlw)) then
if(size(Coupling(1)%htrlw) > 0) then
idx = idx + 1
ExtDiag(idx)%axes = 3
ExtDiag(idx)%name = 'htrlw'
Expand Down

0 comments on commit 8e16345

Please sign in to comment.