do not use std::shared_ptr where it is deemed inappropriate by the maintainers

note that I don't agree with this change and will assume no
responsibility if something goes down the gutter.
This commit is contained in:
Andreas Lauser 2015-05-29 14:36:34 +02:00
parent 2b085e0062
commit 9c78d5ef00
2 changed files with 9 additions and 9 deletions

View File

@ -104,7 +104,7 @@ namespace Opm
NewtonIterationBlackoilInterface& linsolver,
const double* gravity);
std::shared_ptr<Solver> createSolver(const Wells* wells);
Solver* createSolver(const Wells* wells);
void handleAdditionalWellInflow(SimulatorTimer& timer,
WellsManager& wells_manager,

View File

@ -58,15 +58,15 @@ SimulatorFullyImplicitCompressiblePolymer(const parameter::ParameterGroup& param
template <class GridT>
auto SimulatorFullyImplicitCompressiblePolymer<GridT>::
createSolver(const Wells* wells)
-> std::shared_ptr<Solver>
-> Solver*
{
return std::make_shared<Solver>(BaseType::grid_,
BaseType::props_,
BaseType::geo_,
BaseType::rock_comp_props_,
polymer_props_,
*wells,
BaseType::solver_);
return new Solver(BaseType::grid_,
BaseType::props_,
BaseType::geo_,
BaseType::rock_comp_props_,
polymer_props_,
*wells,
BaseType::solver_);
}
template <class GridT>