From 2fd0069effdaa3eee356752b87ea7a60771b52f7 Mon Sep 17 00:00:00 2001 From: Jan Breuer Date: Sat, 4 Jan 2025 00:06:07 +0100 Subject: [PATCH] Delete unused multithreading macro 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. --- src/libcadet/model/LumpedRateModelWithPoresDG2D.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libcadet/model/LumpedRateModelWithPoresDG2D.cpp b/src/libcadet/model/LumpedRateModelWithPoresDG2D.cpp index ecd522a26..579c54b9d 100644 --- a/src/libcadet/model/LumpedRateModelWithPoresDG2D.cpp +++ b/src/libcadet/model/LumpedRateModelWithPoresDG2D.cpp @@ -1175,7 +1175,7 @@ int LumpedRateModelWithPoresDG2D::residualImpl(double t, unsigned int secIdx, St const unsigned int par = (pblk - 1) % (_disc.axNPoints * _disc.radNPoints); residualParticle(t, type, par, secIdx, y, yDot, res, threadLocalMem); } - } CADET_PARFOR_END; + } residualFlux(t, secIdx, y, yDot, res); @@ -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); } @@ -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);