Skip to content

Commit

Permalink
Pass new parameter to openmp call. Required for gcc builds
Browse files Browse the repository at this point in the history
  • Loading branch information
LSchwiebert committed Jan 22, 2025
1 parent ddaeaf5 commit f6690ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CalculateEnergy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ CalculateEnergy::BoxForce(SystemPotential potential, XYZArray const &coords,
#if defined _OPENMP && _OPENMP >= 201511 // check if OpenMP version is 4.5
#pragma omp parallel for default(none) shared(boxAxes, cellStartIndex, \
cellVector, coords, mapParticleToCell, neighborList) \
firstprivate(box, atomCount, molCount, num::qqFact) \
firstprivate(box, calcEnergies, atomCount, molCount, num::qqFact) \
reduction(+:tempREn, tempLJEn, aForcex[:atomCount], aForcey[:atomCount], \
aForcez[:atomCount], mForcex[:molCount], mForcey[:molCount], \
mForcez[:molCount])
Expand Down
2 changes: 1 addition & 1 deletion src/DCDlib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ OFF_T NAMD_seek(int file, OFF_T offset, int whence) {
if (whence == SEEK_SET && retval != offset) {
char buf[256];
sprintf(buf,
"seek failed while writing DCD file: SEEK_SET %lld returned %lld\n",
"seek failed while writing DCD file: SEEK_SET %ld returned %ld\n",
offset, retval);
NAMD_die(buf);
}
Expand Down

0 comments on commit f6690ca

Please sign in to comment.