mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Use only active elements when updating reference porosity
This commit is contained in:
parent
81ec44822b
commit
d8830c721b
@ -2669,11 +2669,10 @@ private:
|
|||||||
referencePorosity_[/*timeIdx=*/0].resize(numDof);
|
referencePorosity_[/*timeIdx=*/0].resize(numDof);
|
||||||
|
|
||||||
const auto& fp = eclState.fieldProps();
|
const auto& fp = eclState.fieldProps();
|
||||||
const std::vector<double> porvData = fp.porv(true);
|
const std::vector<double> porvData = fp.porv(false);
|
||||||
const std::vector<int> actnumData = fp.actnum();
|
const std::vector<int> actnumData = fp.actnum();
|
||||||
for (size_t dofIdx = 0; dofIdx < numDof; ++ dofIdx) {
|
for (size_t dofIdx = 0; dofIdx < numDof; ++ dofIdx) {
|
||||||
unsigned cartElemIdx = vanguard.cartesianIndex(dofIdx);
|
Scalar poreVolume = porvData[dofIdx];
|
||||||
Scalar poreVolume = porvData[cartElemIdx];
|
|
||||||
|
|
||||||
// we define the porosity as the accumulated pore volume divided by the
|
// we define the porosity as the accumulated pore volume divided by the
|
||||||
// geometric volume of the element. Note that -- in pathetic cases -- it can
|
// geometric volume of the element. Note that -- in pathetic cases -- it can
|
||||||
|
Loading…
Reference in New Issue
Block a user