Skip to content

Commit

Permalink
Fix bugs with undefined variable and thread safety in intrad.f90 (NOA…
Browse files Browse the repository at this point in the history
…A-EMC#659)

Co-authored-by: Sho Yokota <[email protected]>
  • Loading branch information
shoyokota and Sho Yokota authored Nov 28, 2023
1 parent 47f35ee commit 1076cf7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gsi/intrad.f90
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,8 @@ subroutine intrad_(radhead,rval,sval,rpred,spred)
i4n(k) = i4n(k-1)+latlon11
enddo

!$omp parallel do schedule(dynamic,1) private(k,i1,i2,i3,i4,mm)
tdir=zero
!$omp parallel do schedule(dynamic,1) private(k,i1,i2,i3,i4)
do k=1,nsig
i1 = i1n(k)
i2 = i2n(k)
Expand Down Expand Up @@ -525,7 +526,7 @@ subroutine intrad_(radhead,rval,sval,rpred,spred)
end do
end if

!$omp parallel do schedule(dynamic,1) private(nn,k,ncr1)
!$omp parallel do schedule(dynamic,1) private(nn,k,ncr1,val_quad,mm)
do nn=1,radptr%nchan

! include observation increment and lapse rate contributions to bias correction
Expand Down

0 comments on commit 1076cf7

Please sign in to comment.