Skip to content

Commit

Permalink
GSPH: blueos didn't like the for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
jmpearl committed May 14, 2024
1 parent f7dacb5 commit 46395f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GSPH/Policies/MFVIncrementVelocityPolicy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ update(const KeyType& key,

const auto n = m.numInternalElements();
#pragma omp parallel for
for (unsigned i = 0; i != n; ++i) {
for (auto i = 0u; i < n; ++i) {
const auto m1 = m(i)+DmDt(i)*multiplier;
const auto DpDti = DpDt(i);
if (m1 > tiny) v(i) += (DpDti - DmDt(i)*v(i)) * multiplier * safeInv(m1);
Expand Down

0 comments on commit 46395f2

Please sign in to comment.