Skip to content

Commit 55ca2db

Browse files
committed
revert isnan statements for vtcd since it is an integer and cannot use isnan
1 parent 8094411 commit 55ca2db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/gsi/read_prepbufr.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1694,7 +1694,7 @@ subroutine read_prepbufr(nread,ndata,nodata,infile,obstype,lunout,twindin,sis,&
16941694
do k=1,levs
16951695
tvflg(k)=one ! initialize as sensible
16961696
do j=1,20
1697-
if (.not. isnan(vtcd) .and. tpc(k,j)==vtcd) tvflg(k)=zero ! reset flag if virtual
1697+
if (tpc(k,j)==vtcd) tvflg(k)=zero ! reset flag if virtual
16981698
if (tpc(k,j)>=bmiss) exit ! end of stack
16991699
end do
17001700
end do
@@ -1713,7 +1713,7 @@ subroutine read_prepbufr(nread,ndata,nodata,infile,obstype,lunout,twindin,sis,&
17131713
exit
17141714
end if
17151715
end if
1716-
if (.not. isnan(vtcd) .and. tpc(k,j)==vtcd) then
1716+
if (tpc(k,j)==vtcd) then
17171717
obsdat(3,k)=tobaux(1,k,j+1)
17181718
qcmark(3,k)=min(tobaux(2,k,j+1),qcmark_huge)
17191719
tqm(k)=nint(qcmark(3,k))
@@ -1737,7 +1737,7 @@ subroutine read_prepbufr(nread,ndata,nodata,infile,obstype,lunout,twindin,sis,&
17371737
tobs4q(1,k)=obsdat(3,k) ! temp obs read in prepbufr
17381738
tqm4q(1,k)=tqm(k)
17391739
do j=1,20
1740-
if (.not. isnan(vtcd) .and. tpc(k,j)==vtcd) tvflg4q(1,k)=zero ! reset flag if virtual
1740+
if (tpc(k,j)==vtcd) tvflg4q(1,k)=zero ! reset flag if virtual
17411741
if (tpc(k,j)>=bmiss) exit ! end of stack
17421742
end do
17431743
end do
@@ -3413,7 +3413,7 @@ subroutine sonde_ext(obsdat,tpc,qcmark,obserr,drfdat,levsio,kx,vtcd)
34133413
do k=1,levs
34143414
tvflg(k)=one ! initialize as sensible
34153415
do j=1,20
3416-
if (.not. isnan(vtcd) .and. tpc(k,j)==vtcd) tvflg(k)=zero ! reset flag if virtual
3416+
if (tpc(k,j)==vtcd) tvflg(k)=zero ! reset flag if virtual
34173417
if (tpc(k,j)>=bmiss) exit ! end of stack
34183418
end do
34193419
end do

0 commit comments

Comments
 (0)