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
77fc26475b
commit
fd9f67ae55
@ -209,7 +209,7 @@ public:
|
||||
|
||||
void initOPMTrans(TransGraph& opmTrans, DeckConstPtr deck, std::shared_ptr<const EclipseState> eclipseState) {
|
||||
std::shared_ptr<GridManager> grid = std::make_shared<GridManager>( eclipseState->getEclipseGrid(),
|
||||
eclipseState->getEclipseProperties().getDoubleGridProperty( "PORV" ).getData() );
|
||||
eclipseState->get3DProperties().getDoubleGridProperty( "PORV" ).getData() );
|
||||
const struct UnstructuredGrid * cGrid = grid->c_grid();
|
||||
std::shared_ptr<BlackoilPropsAdInterface> props;
|
||||
|
||||
|
@ -166,8 +166,8 @@ try
|
||||
|
||||
// Grid init
|
||||
|
||||
if (eclipseState->getEclipseProperties().hasDeckDoubleGridProperty("PORV")) {
|
||||
const auto& porv = eclipseState->getEclipseProperties().getDoubleGridProperty("PORV").getData();
|
||||
if (eclipseState->get3DProperties().hasDeckDoubleGridProperty("PORV")) {
|
||||
const auto& porv = eclipseState->get3DProperties().getDoubleGridProperty("PORV").getData();
|
||||
grid.reset(new GridManager(eclipseState->getEclipseGrid(), porv));
|
||||
} else {
|
||||
grid.reset(new GridManager(eclipseState->getEclipseGrid()));
|
||||
|
@ -423,7 +423,7 @@ namespace Opm
|
||||
{
|
||||
// Create grid.
|
||||
const std::vector<double>& porv =
|
||||
eclipse_state_->getEclipseProperties().getDoubleGridProperty("PORV").getData();
|
||||
eclipse_state_->get3DProperties().getDoubleGridProperty("PORV").getData();
|
||||
grid_init_.reset(new GridInit<Grid>(deck_, eclipse_state_, porv));
|
||||
const Grid& grid = grid_init_->grid();
|
||||
|
||||
|
@ -95,7 +95,7 @@ namespace Opm
|
||||
|
||||
// get the pore volume multipliers from the EclipseState
|
||||
std::vector<double> multpv(numCartesianCells, 1.0);
|
||||
const auto& eclProps = eclState->getEclipseProperties();
|
||||
const auto& eclProps = eclState->get3DProperties();
|
||||
if (eclProps.hasDeckDoubleGridProperty("MULTPV")) {
|
||||
multpv = eclProps.getDoubleGridProperty("MULTPV").getData();
|
||||
}
|
||||
@ -278,7 +278,7 @@ namespace Opm
|
||||
const int* global_cell = Opm::UgGridHelpers::globalCell(grid);
|
||||
const int* cartdims = Opm::UgGridHelpers::cartDims(grid);
|
||||
EclipseGridConstPtr eclgrid = eclState->getEclipseGrid();
|
||||
const auto& porv = eclState->getEclipseProperties().getDoubleGridProperty("PORV").getData();
|
||||
const auto& porv = eclState->get3DProperties().getDoubleGridProperty("PORV").getData();
|
||||
for (int cellIdx = 0; cellIdx < numCells; ++cellIdx) {
|
||||
const int nx = cartdims[0];
|
||||
const int ny = cartdims[1];
|
||||
|
@ -277,7 +277,7 @@ SolventPropsAdFromDeck::SolventPropsAdFromDeck(DeckConstPtr deck,
|
||||
}
|
||||
|
||||
if (deck->hasKeyword("TLPMIXPA")) {
|
||||
const TableContainer& tlpmixparTables = tables->getTlpmixpaTables();
|
||||
const TableContainer& tlpmixparTables = tables.getTlpmixpaTables();
|
||||
if (!tlpmixparTables.empty()) {
|
||||
|
||||
int numRegions = tlpmixparTables.size();
|
||||
@ -497,7 +497,7 @@ void SolventPropsAdFromDeck::extractTableIndex(const std::string& keyword,
|
||||
const int* compressedToCartesianCellIdx,
|
||||
std::vector<int>& tableIdx) const {
|
||||
//Get the Region data
|
||||
const auto& regionData = eclState->getEclipseProperties().getIntGridProperty(keyword).getData();
|
||||
const auto& regionData = eclState->get3DProperties().getIntGridProperty(keyword).getData();
|
||||
// Convert this into an array of compressed cells
|
||||
// Eclipse uses Fortran-style indices which start at 1
|
||||
// instead of 0, we subtract 1.
|
||||
|
Loading…
Reference in New Issue
Block a user