mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Using API get3DProperties()
This commit is contained in:
parent
de0aeac570
commit
e6a4cda9a8
@ -221,7 +221,7 @@ namespace Opm
|
|||||||
const int nc = UgGridHelpers::numCells(G);
|
const int nc = UgGridHelpers::numCells(G);
|
||||||
eqlnum.resize(nc);
|
eqlnum.resize(nc);
|
||||||
const std::vector<int>& e =
|
const std::vector<int>& e =
|
||||||
eclipseState->getEclipseProperties().getIntGridProperty("EQLNUM").getData();
|
eclipseState->get3DProperties().getIntGridProperty("EQLNUM").getData();
|
||||||
const int* gc = UgGridHelpers::globalCell(G);
|
const int* gc = UgGridHelpers::globalCell(G);
|
||||||
for (int cell = 0; cell < nc; ++cell) {
|
for (int cell = 0; cell < nc; ++cell) {
|
||||||
const int deck_pos = (gc == NULL) ? cell : gc[cell];
|
const int deck_pos = (gc == NULL) ? cell : gc[cell];
|
||||||
@ -333,7 +333,7 @@ namespace Opm
|
|||||||
// Check for presence of kw SWATINIT
|
// Check for presence of kw SWATINIT
|
||||||
if (deck->hasKeyword("SWATINIT")) {
|
if (deck->hasKeyword("SWATINIT")) {
|
||||||
const std::vector<double>& swat_init = eclipseState->
|
const std::vector<double>& swat_init = eclipseState->
|
||||||
getEclipseProperties().getDoubleGridProperty("SWATINIT").getData();
|
get3DProperties().getDoubleGridProperty("SWATINIT").getData();
|
||||||
const int nc = UgGridHelpers::numCells(G);
|
const int nc = UgGridHelpers::numCells(G);
|
||||||
swat_init_.resize(nc);
|
swat_init_.resize(nc);
|
||||||
const int* gc = UgGridHelpers::globalCell(G);
|
const int* gc = UgGridHelpers::globalCell(G);
|
||||||
|
Loading…
Reference in New Issue
Block a user