Commit fb8b7e38 authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

[flux][box][fickslaw] use main component index instead of phase index

Obviously has been forgotten in c784ce62.
parent b4a2a64c
......@@ -123,7 +123,7 @@ public:
// compute the diffusive flux
componentFlux[compIdx] = -1.0*rho*vtmv(scvf.unitOuterNormal(), D, gradX)*scvf.area();
if (BalanceEqOpts::mainComponentIsBalanced(phaseIdx) && !FluidSystem::isTracerFluidSystem())
componentFlux[phaseIdx] -= componentFlux[compIdx];
componentFlux[FluidSystem::getMainComponent(phaseIdx)] -= componentFlux[compIdx];
}
return componentFlux;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment