Bugfix: use correct object in sequential model.

Discovered as a side effect of two-phase fix.
This commit is contained in:
Atgeirr Flø Rasmussen 2016-10-27 13:20:10 +02:00
parent 1fe610ef5a
commit e762844cdf

View File

@ -247,7 +247,7 @@ namespace Opm {
/// Return the well model /// Return the well model
const WellModel& wellModel() const const WellModel& wellModel() const
{ {
return pressure_model_->wellModel(); return pressure_solver_.model().wellModel();
} }
@ -265,7 +265,7 @@ namespace Opm {
/// Return reservoir simulation data (for output functionality) /// Return reservoir simulation data (for output functionality)
const SimulatorData& getSimulatorData() const { const SimulatorData& getSimulatorData() const {
return transport_model_->getSimulatorData(); return transport_solver_.model().getSimulatorData();
} }