mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-13 17:32:03 -05:00
use compressed indices setting up ThresholdPressures
This commit is contained in:
1 parent
69959da143
commit
ff559fd1c9
1 file changed
+2
-3
@@ -123,11 +123,10 @@ public:
|
||||
|
||||
// internalize the data specified using the EQLNUM keyword
|
||||
const auto& fp = eclState.fieldProps();
|
||||
const auto& equilRegionData = fp.get_global_int("EQLNUM");
|
||||
const auto& equilRegionData = fp.get_int("EQLNUM");
|
||||
elemEquilRegion_.resize(numElements, 0);
|
||||
for (unsigned elemIdx = 0; elemIdx < numElements; ++elemIdx) {
|
||||
int cartElemIdx = vanguard.cartesianIndex(elemIdx);
|
||||
elemEquilRegion_[elemIdx] = equilRegionData[cartElemIdx] - 1;
|
||||
elemEquilRegion_[elemIdx] = equilRegionData[elemIdx] - 1;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user