mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Avoid deleting derivative i.e. getting "wrong" matrix in case of zero flux
This commit is contained in:
parent
9b4c51de7e
commit
ec11bbaac3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user