Skip to content

Commit

Permalink
Change OpenMP pragmas for compatibility with older Intel compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
LSchwiebert committed Aug 27, 2023
1 parent 26b481e commit f1f45e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/moves/MultiParticle.h
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ inline void MultiParticle::CalculateTrialDistRot() {
double *y = r_k.y;
double *z = r_k.z;
#ifdef _OPENMP
#pragma omp parallel for default(none) shared(lambda, r_max, x, y, z)
#pragma omp parallel for default(none) shared(r_max, x, y, z)
#endif
for (uint m = 0; m < moleculeIndex.size(); m++) {
uint molIndex = moleculeIndex[m];
Expand All @@ -563,7 +563,7 @@ inline void MultiParticle::CalculateTrialDistRot() {
double *y = t_k.y;
double *z = t_k.z;
#ifdef _OPENMP
#pragma omp parallel for default(none) shared(lambda, t_max, x, y, z)
#pragma omp parallel for default(none) shared(t_max, x, y, z)
#endif
for (uint m = 0; m < moleculeIndex.size(); m++) {
uint molIndex = moleculeIndex[m];
Expand Down

0 comments on commit f1f45e2

Please sign in to comment.