mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-26 01:01:00 -06:00
Use EclEpsGridProperties to access SATNUM value
This commit is contained in:
parent
571c24d10c
commit
1faa39cff1
@ -57,11 +57,10 @@ namespace Opm {
|
||||
const auto& compressedToCartesianIdx = Opm::compressedToCartesian(nc, global_cell);
|
||||
scaledEpsInfo_.resize(nc);
|
||||
EclEpsGridProperties epsGridProperties(eclState, false);
|
||||
const auto& satnumData = eclState.get3DProperties().getIntGridProperty("SATNUM").getData();
|
||||
const std::string tag = "Scaled endpoints";
|
||||
for (int c = 0; c < nc; ++c) {
|
||||
const int cartIdx = compressedToCartesianIdx[c];
|
||||
const std::string satnumIdx = std::to_string(satnumData[cartIdx]);
|
||||
const std::string satnumIdx = std::to_string(epsGridProperties.satRegion(cartIdx));
|
||||
std::array<int, 3> ijk;
|
||||
ijk[0] = cartIdx % dims[0];
|
||||
ijk[1] = (cartIdx / dims[0]) % dims[1];
|
||||
|
Loading…
Reference in New Issue
Block a user