OGS
LinearSolverOptions.cpp
Go to the documentation of this file.
1
#include "
LinearSolverOptions.h
"
2
3
#include <set>
4
8
static
std::set<std::string>
known_linear_solvers
{
"eigen"
,
"lis"
,
"petsc"
};
9
10
namespace
MathLib
11
{
12
void
ignoreOtherLinearSolvers
(
const
BaseLib::ConfigTree
& config,
13
const
std::string& solver_name)
14
{
15
for
(
auto
const
& s :
known_linear_solvers
)
16
{
17
if
(s != solver_name)
18
{
19
config.
ignoreConfigParameter
(s);
20
}
21
}
22
}
23
24
}
// namespace MathLib
known_linear_solvers
static std::set< std::string > known_linear_solvers
Definition:
LinearSolverOptions.cpp:8
LinearSolverOptions.h
BaseLib::ConfigTree
Definition:
ConfigTree.h:103
BaseLib::ConfigTree::ignoreConfigParameter
void ignoreConfigParameter(std::string const ¶m) const
Definition:
ConfigTree.cpp:181
MathLib
MathLib::ignoreOtherLinearSolvers
void ignoreOtherLinearSolvers(const BaseLib::ConfigTree &config, const std::string &solver_name)
Definition:
LinearSolverOptions.cpp:12
MathLib
LinAlg
LinearSolverOptions.cpp
Generated by
1.9.1