Merge pull request #5236 from hnil/no_early_exit_zero_flux

Avoid deleting derivative i.e. getting "wrong" matrix in case of zero…
This commit is contained in:
Kai Bao
2024-08-29 14:46:09 +02:00
committed by GitHub
3 changed files with 11 additions and 15 deletions
@@ -285,10 +285,6 @@ public:
distZ*g,
thpres,
problem.moduleParams());
if (pressureDifferences[phaseIdx] == 0) {
volumeFlux[phaseIdx] = 0.0;
continue;
}
const bool upwindIsInterior = (static_cast<unsigned>(upIdx[phaseIdx]) == interiorDofIdx);
const IntensiveQuantities& up = upwindIsInterior ? intQuantsIn : intQuantsEx;