Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reorder correlated error setup checks #736

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading