mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-08-10 06:08:05 -05:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user