Skip to content

Commit

Permalink
BinAveragedFunction OpemMP compilation hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
PKua007 committed Dec 3, 2023
1 parent f50f298 commit 0058b9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/observables/BinAveragedFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ void BinAveragedFunction::addSnapshot(const Packing &packing, [[maybe_unused]] d
const auto &bc = packing.getBoundaryConditions();
#pragma omp parallel for shared(packing, bc, box, histogramBuilder, originDelta, shapeTraits) \
default(none) num_threads(this->numThreads)
for (const auto &shape : packing) {
for (std::size_t i = 0; i < packing.size(); i++) {
const auto &shape = packing[i];
Vector<3> pos = shape.getPosition();
pos -= originDelta;
pos += bc.getCorrection(pos);
Expand Down

0 comments on commit 0058b9f

Please sign in to comment.