mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-29 12:33:49 -06:00
Removes unecessary whitespace.
This commit is contained in:
parent
43d82a232c
commit
6c70d2938d
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
namespace Opm
|
namespace Opm
|
||||||
{
|
{
|
||||||
|
|
||||||
namespace{
|
namespace{
|
||||||
|
|
||||||
class KSPTypeMap {
|
class KSPTypeMap {
|
||||||
@ -52,8 +52,8 @@ namespace{
|
|||||||
type_map_.insert(std::make_pair("cr", KSPCR));
|
type_map_.insert(std::make_pair("cr", KSPCR));
|
||||||
type_map_.insert(std::make_pair("preonly", KSPPREONLY));
|
type_map_.insert(std::make_pair("preonly", KSPPREONLY));
|
||||||
}
|
}
|
||||||
|
|
||||||
KSPType
|
KSPType
|
||||||
find(const std::string& type) const
|
find(const std::string& type) const
|
||||||
{
|
{
|
||||||
Map::const_iterator it = type_map_.find(type);
|
Map::const_iterator it = type_map_.find(type);
|
||||||
@ -61,7 +61,7 @@ namespace{
|
|||||||
if (it == type_map_.end()) {
|
if (it == type_map_.end()) {
|
||||||
it = type_map_.find(default_type_);
|
it = type_map_.find(default_type_);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (it == type_map_.end()) {
|
if (it == type_map_.end()) {
|
||||||
OPM_THROW(std::runtime_error, "Unknown KSPType: '" << type << "'");
|
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("cholesky", PCCHOLESKY));
|
||||||
type_map_.insert(std::make_pair("none", PCNONE));
|
type_map_.insert(std::make_pair("none", PCNONE));
|
||||||
}
|
}
|
||||||
|
|
||||||
PCType
|
PCType
|
||||||
find(const std::string& type) const
|
find(const std::string& type) const
|
||||||
{
|
{
|
||||||
Map::const_iterator it = type_map_.find(type);
|
Map::const_iterator it = type_map_.find(type);
|
||||||
@ -104,10 +104,11 @@ namespace{
|
|||||||
if (it == type_map_.end()) {
|
if (it == type_map_.end()) {
|
||||||
it = type_map_.find(default_type_);
|
it = type_map_.find(default_type_);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (it == type_map_.end()) {
|
if (it == type_map_.end()) {
|
||||||
OPM_THROW(std::runtime_error, "Unknown PCType: '" << type << "'");
|
OPM_THROW(std::runtime_error, "Unknown PCType: '" << type << "'");
|
||||||
}
|
}
|
||||||
|
|
||||||
return it->second;
|
return it->second;
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user