Skip to content

Commit 72a26b7

Browse files
authored
Update call_check_pair's interface in selectActualNeighbors to resolve the error in building MFiX. (#2748)
1 parent 50466d1 commit 72a26b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/Particle/AMReX_NeighborParticlesI.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ selectActualNeighbors (CheckPair&& check_pair, int num_cells)
865865
int nbr_cell_id = (ii * ny + jj) * nz + kk;
866866
for (auto p = poffset[nbr_cell_id]; p < poffset[nbr_cell_id+1]; ++p) {
867867
if (pperm[p] == i) continue;
868-
if (call_check_pair(check_pair, pstruct, i, pperm[p])) {
868+
if (call_check_pair(check_pair, pstruct, pstruct, i, pperm[p])) {
869869
IntVect cell_ijk = getParticleCell(pstruct[pperm[p]], plo, dxi, domain);
870870
if (!box.contains(cell_ijk)) {
871871
int loc = Gpu::Atomic::Inc(p_np_boundary, max_unsigned_int);

0 commit comments

Comments
 (0)