mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
add support for minpvv
This commit is contained in:
parent
d5328fe69c
commit
3a408619da
@ -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;
|
||||
|
@ -604,7 +604,7 @@ private:
|
||||
int cartesianCellIdxAbove = cartesianCellIdx - nxny;
|
||||
while ( cartesianCellIdxAbove >= 0 &&
|
||||
actnum[cartesianCellIdxAbove] > 0 &&
|
||||
porv[cartesianCellIdxAbove] < eclGrid.getMinpvValue() ) {
|
||||
porv[cartesianCellIdxAbove] < eclGrid.getMinpvVector()[cartesianCellIdxAbove] ) {
|
||||
|
||||
// Volume weighted arithmetic average of NTG
|
||||
const double cellAboveVolume = eclGrid.getCellVolume(cartesianCellIdxAbove);
|
||||
|
Loading…
Reference in New Issue
Block a user