mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-28 21:14:25 -06:00
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:
parent
2b085e0062
commit
9c78d5ef00
@ -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,
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user