From d7de9894e0d5c18e8dd138cf9a18a3d272961f65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Thu, 21 May 2015 09:50:54 +0200 Subject: [PATCH] Follow minor API changes in opm-autodiff. --- opm/polymer/fullyimplicit/BlackoilPolymerModel.hpp | 12 ++++++------ .../fullyimplicit/BlackoilPolymerModel_impl.hpp | 14 +++++++------- .../SimulatorFullyImplicitBlackoilPolymer_impl.hpp | 12 ++++++------ 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/opm/polymer/fullyimplicit/BlackoilPolymerModel.hpp b/opm/polymer/fullyimplicit/BlackoilPolymerModel.hpp index 738747c8b..3981f6760 100644 --- a/opm/polymer/fullyimplicit/BlackoilPolymerModel.hpp +++ b/opm/polymer/fullyimplicit/BlackoilPolymerModel.hpp @@ -69,7 +69,7 @@ namespace Opm { typedef WellStateFullyImplicitBlackoilPolymer WellState; /// Model-specific solver parameters. - struct ModelParameter + struct ModelParameters { double dp_max_rel_; double ds_max_; @@ -79,8 +79,8 @@ namespace Opm { double tolerance_cnv_; double tolerance_wells_; - ModelParameter( const parameter::ParameterGroup& param ); - ModelParameter(); + explicit ModelParameters( const parameter::ParameterGroup& param ); + ModelParameters(); void reset(); }; @@ -101,7 +101,7 @@ namespace Opm { /// \param[in] has_vapoil turn on vaporized oil feature /// \param[in] has_polymer turn on polymer feature /// \param[in] terminal_output request output to cout/cerr - BlackoilPolymerModel(const ModelParameter& param, + BlackoilPolymerModel(const ModelParameters& param, const Grid& grid , const BlackoilPropsAdInterface& fluid, const DerivedGeology& geo , @@ -173,7 +173,7 @@ namespace Opm { WellState& well_state); /// Return true if output to cout is wanted. - bool terminalOutput() const; + bool terminalOutputEnabled() const; /// Compute convergence based on total mass balance (tol_mb) and maximum /// residual mass balance (tol_cnv). @@ -252,7 +252,7 @@ namespace Opm { const bool has_polymer_; const int poly_pos_; - ModelParameter param_; + ModelParameters param_; bool use_threshold_pressure_; V threshold_pressures_by_interior_face_; diff --git a/opm/polymer/fullyimplicit/BlackoilPolymerModel_impl.hpp b/opm/polymer/fullyimplicit/BlackoilPolymerModel_impl.hpp index 7249a8a8c..40933ed75 100644 --- a/opm/polymer/fullyimplicit/BlackoilPolymerModel_impl.hpp +++ b/opm/polymer/fullyimplicit/BlackoilPolymerModel_impl.hpp @@ -151,7 +151,7 @@ namespace detail { } // namespace detail template - void BlackoilPolymerModel::ModelParameter:: + void BlackoilPolymerModel::ModelParameters:: reset() { // default values for the solver parameters @@ -165,16 +165,16 @@ namespace detail { } template - BlackoilPolymerModel::ModelParameter:: - ModelParameter() + BlackoilPolymerModel::ModelParameters:: + ModelParameters() { // set default values reset(); } template - BlackoilPolymerModel::ModelParameter:: - ModelParameter( const parameter::ParameterGroup& param ) + BlackoilPolymerModel::ModelParameters:: + ModelParameters( const parameter::ParameterGroup& param ) { // set default values reset(); @@ -192,7 +192,7 @@ namespace detail { template BlackoilPolymerModel:: - BlackoilPolymerModel(const ModelParameter& param, + BlackoilPolymerModel(const ModelParameters& param, const Grid& grid , const BlackoilPropsAdInterface& fluid, const DerivedGeology& geo , @@ -310,7 +310,7 @@ namespace detail { template bool BlackoilPolymerModel:: - terminalOutput() const + terminalOutputEnabled() const { return terminal_output_; } diff --git a/opm/polymer/fullyimplicit/SimulatorFullyImplicitBlackoilPolymer_impl.hpp b/opm/polymer/fullyimplicit/SimulatorFullyImplicitBlackoilPolymer_impl.hpp index 73f987f49..0e7abd142 100644 --- a/opm/polymer/fullyimplicit/SimulatorFullyImplicitBlackoilPolymer_impl.hpp +++ b/opm/polymer/fullyimplicit/SimulatorFullyImplicitBlackoilPolymer_impl.hpp @@ -249,11 +249,11 @@ namespace Opm typedef T Grid; typedef BlackoilPolymerModel Model; - typedef typename Model::ModelParameter ModelParam; - ModelParam modelParam( param_ ); + typedef typename Model::ModelParameters ModelParams; + ModelParams modelParams( param_ ); typedef NewtonSolver Solver; - typedef typename Solver::SolverParameter SolverParam; - SolverParam solverParam( param_ ); + typedef typename Solver::SolverParameters SolverParams; + SolverParams solverParams( param_ ); //adaptive time stepping // std::unique_ptr< AdaptiveTimeStepping > adaptiveTimeStepping; @@ -330,11 +330,11 @@ namespace Opm // Run a multiple steps of the solver depending on the time step control. solver_timer.start(); - Model model(modelParam, grid_, props_, geo_, rock_comp_props_, polymer_props_, wells, solver_, has_disgas_, has_vapoil_, has_polymer_, terminal_output_); + Model model(modelParams, grid_, props_, geo_, rock_comp_props_, polymer_props_, wells, solver_, has_disgas_, has_vapoil_, has_polymer_, terminal_output_); if (!threshold_pressures_by_face_.empty()) { model.setThresholdPressures(threshold_pressures_by_face_); } - Solver solver(solverParam, model); + Solver solver(solverParams, model); // If sub stepping is enabled allow the solver to sub cycle // in case the report steps are to large for the solver to converge