Skip to content

Commit

Permalink
Enable AOD diagnostics when coupled with AQM. (ufs-community#593)
Browse files Browse the repository at this point in the history
* Enable AOD diagnostics when coupled with AQM

Co-authored-by: Raffaele Montuoro <raffaele.montuoro@noaa.gov>
  • Loading branch information
BrianCurtis-NOAA and rmontuoro authored Nov 3, 2022
1 parent d6f5ccf commit 045de83
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ccpp/driver/GFS_diagnostics.F90
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,22 @@ subroutine GFS_externaldiag_populate (ExtDiag, Model, Statein, Stateout, Sfcprop
ExtDiag(idx)%data(nb)%var2 => IntDiag(nb)%fluxr(:,39)
enddo

!--- air quality diagnostics ---
if (Model%cplaqm) then
if (associated(IntDiag(1)%aod)) then
idx = idx + 1
ExtDiag(idx)%axes = 2
ExtDiag(idx)%name = 'aod'
ExtDiag(idx)%desc = 'total aerosol optical depth at 550 nm'
ExtDiag(idx)%unit = 'numerical'
ExtDiag(idx)%mod_name = 'gfs_phys'
allocate (ExtDiag(idx)%data(nblks))
do nb = 1,nblks
ExtDiag(idx)%data(nb)%var2 => IntDiag(nb)%aod
enddo
endif
endif

!
!
!--- accumulated diagnostics ---
Expand Down

0 comments on commit 045de83

Please sign in to comment.