Skip to content

Commit

Permalink
reorder correlated error setup checks (#736)
Browse files Browse the repository at this point in the history
  • Loading branch information
RussTreadon-NOAA authored Apr 22, 2024
1 parent d75f44a commit 457510c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/gsi/correlated_obsmod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -961,14 +961,18 @@ subroutine upd_varch_
enddo
nchanl1=jc

if(nchanl1==0) call die(myname_,' improperly set GSI_BundleErrorCov')
if(.not.amiset_(GSI_BundleErrorCov(itbl))) then
if (iamroot_) write(6,*) 'WARNING: Error Covariance not set for ',trim(idnames(itbl))
if (iamroot_) write(6,*) trim(myname_), ' WARNING: Error Covariance not set for ',trim(idnames(itbl))
cycle read_tab
endif

nch_active=GSI_BundleErrorCov(itbl)%nch_active
if(nch_active<0) return
if(nch_active<0) then
if (iamroot_) write(6,*) trim(myname_), ' WARNING: No active channels for ',trim(idnames(itbl))
return
endif

if(nchanl1==0) call die(myname_,' improperly set GSI_BundleErrorCov')

if(GMAO_ObsErrorCov)then
do jj=1,nch_active
Expand Down

0 comments on commit 457510c

Please sign in to comment.