Skip to content

Commit

Permalink
fix compilation without avx
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenSeckler committed Jun 16, 2020
1 parent 79318be commit 4252b72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/autopas/molecularDynamics/LJFunctorAVX.h
Original file line number Diff line number Diff line change
Expand Up @@ -749,11 +749,14 @@ class LJFunctorAVX : public Functor<Particle, ParticleCell, typename Particle::S
// make sure of the size of AoSThreadData
static_assert(sizeof(AoSThreadData) % 64 == 0, "AoSThreadData has wrong size");

#ifdef __AVX__
const __m256d _zero{_mm256_set1_pd(0.)};
const __m256d _one{_mm256_set1_pd(1.)};
const __m256i _masks[3];
const __m256i _ownedStateDummyMM256i{0x0};
const __m256i _ownedStateOwnedMM256i{_mm256_set1_epi64x(static_cast<int64_t>(OwnershipState::owned))};
#endif

const __m256d _cutoffsquare;
__m256d _shift6 = _mm256_setzero_pd();
__m256d _epsilon24;
Expand All @@ -763,6 +766,7 @@ class LJFunctorAVX : public Functor<Particle, ParticleCell, typename Particle::S

// sum of the potential energy, only calculated if calculateGlobals is true
double _upotSum;

// sum of the virial, only calculated if calculateGlobals is true
std::array<double, 3> _virialSum;

Expand Down

0 comments on commit 4252b72

Please sign in to comment.