Skip to content

Commit

Permalink
fix a bug in superob when nobs=0
Browse files Browse the repository at this point in the history
  • Loading branch information
gmao-cda committed Mar 8, 2024
1 parent 3dc1a8b commit 1b089a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/obs/superob.f90
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ PROGRAM superob
! Read observations from file
!-----------------------------------------------------------------------------
nobs = 0
CALL get_nobs(trim(obsinfile),8,nobs)
CALL get_nobs(trim(obsinfile),8,nobs, errIfNoObs=.false.)

if (nobs<0) then ! [NOBS <= 0]
if (nobs<=0) then ! [NOBS <= 0]

print*, "[warning] superob :: nobs = 0. will output an empty file"
call create_empty_obsfile(trim(obsoutfile))
Expand Down

0 comments on commit 1b089a2

Please sign in to comment.