diff --git a/dumux/flux/ccmpfa/darcyslaw.hh b/dumux/flux/ccmpfa/darcyslaw.hh index 10d186ec216e63484e71341380260ed3c1eb9839..ce6543d1524045992e256e396cfe0f6d8cd2d7d2 100644 --- a/dumux/flux/ccmpfa/darcyslaw.hh +++ b/dumux/flux/ccmpfa/darcyslaw.hh @@ -201,7 +201,7 @@ private: : dataHandle.gOutside()[localFaceIdx][idxInOutside]); // switch the sign if necessary - if (cache.advectionSwitchFluxSign()) + if (switchSign) scvfFlux *= -1.0; return scvfFlux; diff --git a/dumux/flux/ccmpfa/fickslaw.hh b/dumux/flux/ccmpfa/fickslaw.hh index bf568d6d0742b762a2d9df3acf062e3435a2fd10..6cc0b3144ed1bab14044ebebeac1eb35585dd181 100644 --- a/dumux/flux/ccmpfa/fickslaw.hh +++ b/dumux/flux/ccmpfa/fickslaw.hh @@ -234,7 +234,7 @@ private: Scalar scvfFlux = tij*xj; // switch the sign if necessary - if (cache.advectionSwitchFluxSign()) + if (switchSign) scvfFlux *= -1.0; return scvfFlux; diff --git a/dumux/flux/ccmpfa/fourierslaw.hh b/dumux/flux/ccmpfa/fourierslaw.hh index 7b56dfb9e543021a68d34a1a465c57c0e92224fb..761f04a063fe5664226daa5df2fd140f08db6506 100644 --- a/dumux/flux/ccmpfa/fourierslaw.hh +++ b/dumux/flux/ccmpfa/fourierslaw.hh @@ -178,7 +178,7 @@ private: const FluxVarsCache& cache, const DataHandle& dataHandle) { - const bool switchSign = cache.advectionSwitchFluxSign(); + const bool switchSign = cache.heatConductionSwitchFluxSign(); const auto localFaceIdx = cache.ivLocalFaceIndex(); const auto idxInOutside = cache.indexInOutsideFaces(); @@ -189,7 +189,7 @@ private: Scalar scvfFlux = tij*Tj; // switch the sign if necessary - if (cache.advectionSwitchFluxSign()) + if (switchSign) scvfFlux *= -1.0; return scvfFlux;