From 6c70d2938dc33acac3227fc9719122338dfd8f40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Kvalsvik?= Date: Wed, 10 Dec 2014 18:06:28 +0100 Subject: [PATCH] Removes unecessary whitespace. --- opm/core/linalg/LinearSolverPetsc.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/opm/core/linalg/LinearSolverPetsc.cpp b/opm/core/linalg/LinearSolverPetsc.cpp index a0fb5771f..4d6528831 100644 --- a/opm/core/linalg/LinearSolverPetsc.cpp +++ b/opm/core/linalg/LinearSolverPetsc.cpp @@ -28,7 +28,7 @@ namespace Opm { - + namespace{ class KSPTypeMap { @@ -52,8 +52,8 @@ namespace{ type_map_.insert(std::make_pair("cr", KSPCR)); type_map_.insert(std::make_pair("preonly", KSPPREONLY)); } - - KSPType + + KSPType find(const std::string& type) const { Map::const_iterator it = type_map_.find(type); @@ -61,7 +61,7 @@ namespace{ if (it == type_map_.end()) { it = type_map_.find(default_type_); } - + if (it == type_map_.end()) { OPM_THROW(std::runtime_error, "Unknown KSPType: '" << type << "'"); } @@ -95,8 +95,8 @@ namespace{ type_map_.insert(std::make_pair("cholesky", PCCHOLESKY)); type_map_.insert(std::make_pair("none", PCNONE)); } - - PCType + + PCType find(const std::string& type) const { Map::const_iterator it = type_map_.find(type); @@ -104,10 +104,11 @@ namespace{ if (it == type_map_.end()) { it = type_map_.find(default_type_); } - + if (it == type_map_.end()) { OPM_THROW(std::runtime_error, "Unknown PCType: '" << type << "'"); } + return it->second; } private: