mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
removing the completions after createGrid in eclbasegridmanager
This commit is contained in:
parent
d3cb81a7ba
commit
2c298b2b99
@ -196,6 +196,11 @@ protected:
|
||||
new CartesianIndexMapper(*grid_, cartesianDimension_, cartesianCellId_);
|
||||
}
|
||||
|
||||
void filterCompletions_()
|
||||
{
|
||||
// not handling the removal of completions for this type of grid yet.
|
||||
}
|
||||
|
||||
Grid* grid_;
|
||||
EquilGrid* equilGrid_;
|
||||
std::vector<int> cartesianCellId_;
|
||||
|
@ -194,6 +194,7 @@ public:
|
||||
}
|
||||
|
||||
asImp_().createGrids_();
|
||||
asImp_().filterCompletions_();
|
||||
asImp_().finalizeInit_();
|
||||
}
|
||||
|
||||
@ -219,6 +220,10 @@ public:
|
||||
return *schedule_;
|
||||
}
|
||||
|
||||
Opm::Schedule& schedule() {
|
||||
return *schedule_;
|
||||
}
|
||||
|
||||
const Opm::SummaryConfig& summaryConfig() const {
|
||||
return *summaryConfig_;
|
||||
}
|
||||
@ -316,7 +321,7 @@ private:
|
||||
static Opm::Deck* externalDeck_;
|
||||
static Opm::EclipseState* externalEclState_;
|
||||
static Opm::Schedule* externalSchedule_;
|
||||
static Opm::SummaryConfig* externalSummaryConfig_;
|
||||
static Opm::SummaryConfig* externalSummaryConfig_;
|
||||
std::unique_ptr<Opm::Deck> internalDeck_;
|
||||
std::unique_ptr<Opm::EclipseState> internalEclState_;
|
||||
std::unique_ptr<Opm::Schedule> internalSchedule_;
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include "ecltransmissibility.hh"
|
||||
|
||||
#include <dune/grid/CpGrid.hpp>
|
||||
#include <dune/grid/cpgrid/GridHelpers.hpp>
|
||||
|
||||
#include <dune/grid/common/mcmgmapper.hh>
|
||||
|
||||
@ -257,6 +258,16 @@ protected:
|
||||
globalTrans_ = nullptr;
|
||||
}
|
||||
|
||||
// removing some completions located in inactive grid cells
|
||||
void filterCompletions_()
|
||||
{
|
||||
assert(grid_);
|
||||
Grid grid = *grid_;
|
||||
grid.switchToGlobalView();
|
||||
const auto eclipseGrid = Opm::UgGridHelpers::createEclipseGrid(grid, this->eclState().getInputGrid());
|
||||
this->schedule().filterCompletions(eclipseGrid);
|
||||
}
|
||||
|
||||
Grid* grid_;
|
||||
EquilGrid* equilGrid_;
|
||||
CartesianIndexMapper* cartesianIndexMapper_;
|
||||
|
@ -151,6 +151,11 @@ protected:
|
||||
cartesianIndexMapper_ = new CartesianIndexMapper(*grid_);
|
||||
}
|
||||
|
||||
void filterCompletions_()
|
||||
{
|
||||
// not handling the removal of completions for this type of grid yet.
|
||||
}
|
||||
|
||||
GridPointer grid_;
|
||||
CartesianIndexMapperPointer cartesianIndexMapper_;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user