From fec6154d8118810beb96495cfa68a330c21ce4fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Tue, 20 May 2014 15:23:04 +0200 Subject: [PATCH] Remove unused data members and parameters. --- opm/autodiff/NewtonIterationBlackoilCPR.cpp | 6 +----- opm/autodiff/NewtonIterationBlackoilCPR.hpp | 5 +---- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/opm/autodiff/NewtonIterationBlackoilCPR.cpp b/opm/autodiff/NewtonIterationBlackoilCPR.cpp index 76c4894fd..ea606948d 100644 --- a/opm/autodiff/NewtonIterationBlackoilCPR.cpp +++ b/opm/autodiff/NewtonIterationBlackoilCPR.cpp @@ -108,12 +108,8 @@ namespace Opm /// Construct a system solver. /// \param[in] linsolver linear solver to use - NewtonIterationBlackoilCPR::NewtonIterationBlackoilCPR(const parameter::ParameterGroup& param) + NewtonIterationBlackoilCPR::NewtonIterationBlackoilCPR(const parameter::ParameterGroup& /*param*/) { - parameter::ParameterGroup cpr_elliptic = param.getDefault("cpr_elliptic", param); - linsolver_elliptic_.reset(new LinearSolverFactory(cpr_elliptic)); - parameter::ParameterGroup cpr_full = param.getDefault("cpr_full", param); - linsolver_full_.reset(new LinearSolverFactory(cpr_full)); } diff --git a/opm/autodiff/NewtonIterationBlackoilCPR.hpp b/opm/autodiff/NewtonIterationBlackoilCPR.hpp index 01c460233..c8101ccef 100644 --- a/opm/autodiff/NewtonIterationBlackoilCPR.hpp +++ b/opm/autodiff/NewtonIterationBlackoilCPR.hpp @@ -42,6 +42,7 @@ namespace Opm /// \param[in] param parameters controlling the behaviour of /// the preconditioning and choice of /// linear solvers. + /// Note: parameters currently unused. NewtonIterationBlackoilCPR(const parameter::ParameterGroup& param); /// Solve the system of linear equations Ax = b, with A being the @@ -50,10 +51,6 @@ namespace Opm /// \param[in] residual residual object containing A and b. /// \return the solution x virtual SolutionVector computeNewtonIncrement(const LinearisedBlackoilResidual& residual) const; - - private: - std::unique_ptr linsolver_elliptic_; - std::unique_ptr linsolver_full_; }; } // namespace Opm