We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b7d087 commit ed3c8e7Copy full SHA for ed3c8e7
core/src/Cabana_VerletList.hpp
@@ -348,9 +348,11 @@ struct VerletListBuilder
348
{
349
// See if we should actually check this box for
350
// neighbors.
351
- if ( linked_cell_list.cellStencil()
352
- .grid.minDistanceToPoint(
353
- x_p, y_p, z_p, i, j, k ) <= rsqr )
+ if ( withinCutoff(
+ pid,
+ linked_cell_list.cellStencil()
354
+ .grid.minDistanceToPoint(
355
+ x_p, y_p, z_p, i, j, k ) ) )
356
357
std::size_t n_offset =
358
linked_cell_list.binOffset( i, j, k );
@@ -564,9 +566,11 @@ struct VerletListBuilder
564
566
565
567
568
569
570
571
572
573
574
575
// Check the particles in this bin to see if
576
// they are neighbors.
0 commit comments