mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-28 02:00:59 -06:00
Cherry-pick Atgeirr's Remove Deck parameter patch
Remove Deck parameter from GridInit constructor. Possible because we now use the EclipseGrid-taking overload of processEclipseFormat() for CpGrid.
This commit is contained in:
parent
18f6672df0
commit
07fec302f4
@ -424,7 +424,7 @@ namespace Opm
|
||||
// Create grid.
|
||||
const std::vector<double>& porv =
|
||||
eclipse_state_->get3DProperties().getDoubleGridProperty("PORV").getData();
|
||||
grid_init_.reset(new GridInit<Grid>(deck_, eclipse_state_, porv));
|
||||
grid_init_.reset(new GridInit<Grid>(eclipse_state_, porv));
|
||||
const Grid& grid = grid_init_->grid();
|
||||
|
||||
// Create material law manager.
|
||||
|
@ -40,7 +40,7 @@ namespace Opm
|
||||
{
|
||||
public:
|
||||
/// Initialize from a deck and/or an eclipse state and (logical cartesian) specified pore volumes.
|
||||
GridInit(DeckConstPtr, EclipseStateConstPtr, const std::vector<double>&)
|
||||
GridInit(EclipseStateConstPtr, const std::vector<double>&)
|
||||
{
|
||||
OPM_THROW(std::logic_error, "Found no specialization for GridInit for the requested Grid class.");
|
||||
}
|
||||
@ -53,7 +53,7 @@ namespace Opm
|
||||
{
|
||||
public:
|
||||
/// Initialize from a deck and/or an eclipse state and (logical cartesian) specified pore volumes.
|
||||
GridInit(DeckConstPtr, EclipseStateConstPtr eclipse_state, const std::vector<double>& porv)
|
||||
GridInit(EclipseStateConstPtr eclipse_state, const std::vector<double>& porv)
|
||||
: grid_manager_(eclipse_state->getInputGrid(), porv)
|
||||
{
|
||||
}
|
||||
@ -74,9 +74,9 @@ namespace Opm
|
||||
{
|
||||
public:
|
||||
/// Initialize from a deck and/or an eclipse state and (logical cartesian) specified pore volumes.
|
||||
GridInit(DeckConstPtr deck, EclipseStateConstPtr, const std::vector<double>& porv)
|
||||
GridInit(EclipseStateConstPtr eclipse_state, const std::vector<double>& porv)
|
||||
{
|
||||
grid_.processEclipseFormat(deck, false, false, false, porv);
|
||||
grid_.processEclipseFormat(eclipse_state->getInputGrid(), false, false, false, porv);
|
||||
}
|
||||
/// Access the created grid. Note that mutable access may be required for load balancing.
|
||||
Dune::CpGrid& grid()
|
||||
|
Loading…
Reference in New Issue
Block a user