Pass ref instead of shared pointer to initEquil

This commit is contained in:
Tor Harald Sandve 2017-11-21 14:29:08 +01:00
parent 31bfb22273
commit 2a7d7b8ae5
2 changed files with 2 additions and 2 deletions

View File

@ -642,7 +642,7 @@ namespace Opm
FluidSystem::initFromDeck(*deck_ , *eclipse_state_);
typedef EQUIL::DeckDependent::InitialStateComputer<FluidSystem> ISC;
ISC isc(material_law_manager_, *eclipse_state_, grid, gravity_[2]);
ISC isc(*material_law_manager_, *eclipse_state_, grid, gravity_[2]);
const bool oil = FluidSystem::phaseIsActive(FluidSystem::oilPhaseIdx);
const int oilpos = FluidSystem::oilPhaseIdx;

View File

@ -539,7 +539,7 @@ namespace Opm
typedef EQUIL::DeckDependent::InitialStateComputer<FluidSystem> ISC;
ISC isc(materialLawManager(), eclState(), grid, gravity());
ISC isc(*materialLawManager(), eclState(), grid, gravity());
const bool oil = FluidSystem::phaseIsActive(FluidSystem::oilPhaseIdx);
const int oilpos = FluidSystem::oilPhaseIdx;