mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-08-12 11:44:48 -05:00
add support for minpvv
This commit is contained in:
+2
-2
@@ -1657,12 +1657,12 @@ private:
|
||||
// conserved, cells are not disabled due to a too small pore volume because
|
||||
// such cells still store and conduct energy.
|
||||
if (!enableEnergy && eclGrid.getMinpvMode() == Opm::MinpvMode::ModeEnum::OpmFIL) {
|
||||
Scalar minPvValue = eclGrid.getMinpvValue();
|
||||
const std::vector<Scalar>& minPvVector = eclGrid.getMinpvVector();
|
||||
for (int aboveElemCartIdx = static_cast<int>(cartElemIdx) - nx*ny;
|
||||
aboveElemCartIdx >= 0;
|
||||
aboveElemCartIdx -= nx*ny)
|
||||
{
|
||||
if (porvData[aboveElemCartIdx] >= minPvValue)
|
||||
if (porvData[aboveElemCartIdx] >= minPvVector[aboveElemCartIdx])
|
||||
// the cartesian element above exhibits a pore volume which larger or
|
||||
// equal to the minimum one
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user