shared_ptr<EclipseGrid> -> const EclipseGrid&

This commit is contained in:
Joakim Hove
2016-08-31 19:39:39 +02:00
parent 5f1bcb2a59
commit 10d76d5bb1
11 changed files with 21 additions and 21 deletions

View File

@@ -54,7 +54,7 @@ namespace Opm
public:
/// Initialize from a deck and/or an eclipse state and (logical cartesian) specified pore volumes.
GridInit(EclipseStateConstPtr eclipse_state, const std::vector<double>& porv)
: grid_manager_(eclipse_state->getInputGrid(), porv)
: grid_manager_(*eclipse_state->getInputGrid(), porv)
{
}
/// Access the created grid.
@@ -76,7 +76,7 @@ namespace Opm
/// Initialize from a deck and/or an eclipse state and (logical cartesian) specified pore volumes.
GridInit(EclipseStateConstPtr eclipse_state, const std::vector<double>& porv)
{
grid_.processEclipseFormat(eclipse_state->getInputGrid(), 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()