Skip to content
Snippets Groups Projects
Commit 0cbdeb13 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[mpfa][fluxlaws] use correct flux sign switch query

parent d2bf570a
No related branches found
No related tags found
1 merge request!1414[mpfa][fluxlaws] use correct flux sign switch query
......@@ -201,7 +201,7 @@ private:
: dataHandle.gOutside()[localFaceIdx][idxInOutside]);
// switch the sign if necessary
if (cache.advectionSwitchFluxSign())
if (switchSign)
scvfFlux *= -1.0;
return scvfFlux;
......
......@@ -234,7 +234,7 @@ private:
Scalar scvfFlux = tij*xj;
// switch the sign if necessary
if (cache.advectionSwitchFluxSign())
if (switchSign)
scvfFlux *= -1.0;
return scvfFlux;
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment