24template <
class CellType>
27 using namespace autopas::utils::ArrayMath::literals;
28 for (
auto &p : cell) {
29 if (p.getID() == particle.getID()) {
30 auto distanceVec = p.getR() - particle.getR();
32 if (distanceSqr < absError * absError) {
This namespace is used for implementation specifics.
Definition: CellFunctor.h:21
static bool checkParticleInCellAndUpdateByIDAndPosition(CellType &cell, const typename CellType::ParticleType &particle, double absError)
Updates a found particle within cellI to the values of particleI.
Definition: ParticleCellHelpers.h:25
constexpr T dot(const std::array< T, SIZE > &a, const std::array< T, SIZE > &b)
Generates the dot product of two arrays.
Definition: ArrayMath.h:233
CellType
The ParticleCell Type as an Enum.
Definition: ParticleCell.h:19