Skip to content

Commit

Permalink
Issue #120: add nchanl_diag check prior to writing radiance diagnosti…
Browse files Browse the repository at this point in the history
…c file (see #133)
  • Loading branch information
RussTreadon-NOAA committed Apr 1, 2021
1 parent 6f97bf3 commit 9f4f8e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gsi/setuprad.f90
Original file line number Diff line number Diff line change
Expand Up @@ -2108,7 +2108,7 @@ subroutine setuprad(obsLL,odiagLL,lunin,mype,aivals,stats,nchanl,nreal,nobs,&
deallocate(diagbufchan)
deallocate(sc_index)

if (rad_diagsave) then
if (rad_diagsave .and. nchanl_diag > 0) then
if (netcdf_diag) call nc_diag_write
if(binary_diag) call final_binary_diag_
if (lextra .and. allocated(diagbufex)) deallocate(diagbufex)
Expand Down

0 comments on commit 9f4f8e1

Please sign in to comment.