mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-15 22:41:55 -06:00
Use the base class model_param_ and avoid recreating it.
This commit is contained in:
parent
bfd9071307
commit
2b6163b5ff
@ -64,12 +64,9 @@ namespace Opm
|
||||
-> std::unique_ptr<Solver>
|
||||
{
|
||||
typedef typename Traits::Model Model;
|
||||
typedef typename Model::ModelParameters ModelParams;
|
||||
ModelParams modelParams( BaseType::param_ );
|
||||
typedef NewtonSolver<Model> Solver;
|
||||
|
||||
|
||||
auto model = std::unique_ptr<Model>(new Model(modelParams,
|
||||
auto model = std::unique_ptr<Model>(new Model(BaseType::model_param_,
|
||||
BaseType::grid_,
|
||||
BaseType::props_,
|
||||
BaseType::geo_,
|
||||
|
Loading…
Reference in New Issue
Block a user