From c97fe77d33e40df8f2941e48025fa13023b435be Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Mon, 27 Apr 2015 18:22:54 +0200 Subject: [PATCH] [PL] Remove unused _value from NeumannBcConfig. --- ProcessLib/NeumannBcConfig.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/ProcessLib/NeumannBcConfig.h b/ProcessLib/NeumannBcConfig.h index 4b17382f842..741432e3194 100644 --- a/ProcessLib/NeumannBcConfig.h +++ b/ProcessLib/NeumannBcConfig.h @@ -49,10 +49,10 @@ public: { DBUG("Constructing NeumannBcConfig from config."); - _value = config.get<double>("value", 0); - DBUG("Using value %g", _value); + double const value = config.get<double>("value", 0); + DBUG("Using value %g", value); - _function = new MathLib::ConstantFunction<double>(_value); + _function = new MathLib::ConstantFunction<double>(value); } ~NeumannBcConfig() @@ -64,10 +64,8 @@ public: } /// Initialize Neumann type boundary conditions. - /// Fills in elements of the particular geometry of the boundary condition - /// and the corresponding values. - /// The elements are appended to the \c elements vector and the values are - /// filled with the constant _value. + /// Fills in elements of the particular geometry of the boundary condition. + /// The elements are appended to the \c elements vector. void initialize(MeshGeoToolsLib::BoundaryElementsSearcher& searcher) { std::vector<MeshLib::Element*> elems = searcher.getBoundaryElements(*_geometry); @@ -97,7 +95,6 @@ public: } private: - double _value; std::vector<MeshLib::Element*> _elements; ///< boundary domain /// A function given on the domain of the boundary condition. -- GitLab