Skip to content

Commit

Permalink
Delete unused multithreading macro
Browse files Browse the repository at this point in the history
The macro CADET_PARFOR_END extends to a closed bracket when the project
is build with multithreading enabled. This causes issues in some
environments (build failed on MacOS), when the corresponding opening
bracket is not defined.
This commit deletes unused CADET_PARFOR_END statements.
  • Loading branch information
jbreue16 committed Jan 3, 2025
1 parent 5333e26 commit 2fd0069
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libcadet/model/LumpedRateModelWithPoresDG2D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ int LumpedRateModelWithPoresDG2D::residualImpl(double t, unsigned int secIdx, St
const unsigned int par = (pblk - 1) % (_disc.axNPoints * _disc.radNPoints);
residualParticle<StateType, ResidualType, ParamType, wantJac, wantRes>(t, type, par, secIdx, y, yDot, res, threadLocalMem);
}
} CADET_PARFOR_END;
}

residualFlux<StateType, ResidualType, ParamType, wantJac, wantRes>(t, secIdx, y, yDot, res);

Expand Down Expand Up @@ -1398,7 +1398,7 @@ int LumpedRateModelWithPoresDG2D::residualSensFwdCombine(const SimulationTime& s
for (unsigned int i = 0; i < numDofs(); ++i)
{
ptrResS[i] = tmp1[i] + tmp2[i] + adRes[i].getADValue(param);
} CADET_PARFOR_END;
}

BENCH_STOP(_timerResidualSensPar);
}
Expand Down Expand Up @@ -1507,7 +1507,7 @@ void LumpedRateModelWithPoresDG2D::multiplyWithDerivativeJacobian(const Simulati
solidRet[bnd] = solidSdot[bnd];
}
}
} CADET_PARFOR_END;
}

// Handle inlet DOFs (all algebraic)
std::fill_n(ret, _disc.nComp, 0.0);
Expand Down

0 comments on commit 2fd0069

Please sign in to comment.