mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
use std::unique_ptr instead of boost::scoped_ptr.
This commit is contained in:
parent
6b3b90500f
commit
61c76c4294
@ -213,7 +213,7 @@ try
|
||||
|
||||
// Create new wells, polymer inflow controls.
|
||||
WellsManager wells(eclipseState, reportStepIdx, *grid->c_grid(), props->permeability());
|
||||
boost::scoped_ptr<PolymerInflowInterface> polymer_inflow;
|
||||
std::unique_ptr<PolymerInflowInterface> polymer_inflow;
|
||||
if (use_wpolymer) {
|
||||
if (wells.c_wells() == 0) {
|
||||
OPM_THROW(std::runtime_error, "Cannot control polymer injection via WPOLYMER without wells.");
|
||||
|
Loading…
Reference in New Issue
Block a user