Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Fixed bad boolean operation resulting from copying the double list ve…
Browse files Browse the repository at this point in the history
…rsion of the sweep function to the single list version
  • Loading branch information
daminton committed Nov 17, 2021
1 parent c6ece4e commit 5df4bc4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/encounter/encounter_check.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1226,10 +1226,10 @@ pure subroutine sweep_sl(n, ext_ind, ibegi, iendi, ibeg, iend, lencounteri)
ibegz(jlo:jhi) = ibeg(3,box(jlo:jhi))
iendz(jlo:jhi) = iend(3,box(jlo:jhi))

lencounterj(jlo:jhi) = lencounterj(jlo:jhi) .and. (iendy(jlo:jhi) > ibegi(2)) &
.and. (ibegy(jlo:jhi) < iendi(2)) &
.and. (iendz(jlo:jhi) > ibegi(3)) &
.and. (ibegz(jlo:jhi) < iendi(3))
lencounterj(jlo:jhi) = iendy(jlo:jhi) > ibegi(2) &
.and. (ibegy(jlo:jhi) < iendi(2)) &
.and. (iendz(jlo:jhi) > ibegi(3)) &
.and. (ibegz(jlo:jhi) < iendi(3))

do concurrent(jbox = jlo:jhi)
lencounteri(box(jbox)) = lencounterj(jbox)
Expand Down

0 comments on commit 5df4bc4

Please sign in to comment.