From 2bd83aae73d6d755402fff756c57d5d1a0a0d8cb Mon Sep 17 00:00:00 2001 From: Kai Bao Date: Wed, 6 Apr 2016 14:10:17 +0200 Subject: [PATCH] making the constructors of WellOps and StandardWells explicit. --- opm/autodiff/BlackoilModelBase.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/autodiff/BlackoilModelBase.hpp b/opm/autodiff/BlackoilModelBase.hpp index 7f92f38ec..c9870e6ea 100644 --- a/opm/autodiff/BlackoilModelBase.hpp +++ b/opm/autodiff/BlackoilModelBase.hpp @@ -272,14 +272,14 @@ namespace Opm { class StandardWells { protected: struct WellOps { - WellOps(const Wells* wells); + explicit WellOps(const Wells* wells); Eigen::SparseMatrix w2p; // well -> perf (scatter) Eigen::SparseMatrix p2w; // perf -> well (gather) std::vector well_cells; // the set of perforated cells }; public: - StandardWells(const Wells* wells); + explicit StandardWells(const Wells* wells); const Wells& wells() const;