OGS
LinearSolverOptions.cpp
Go to the documentation of this file.
1
10
#include "
LinearSolverOptions.h
"
11
12
#include <set>
13
14
#include "
BaseLib/ConfigTree.h
"
15
19
static
std::set<std::string>
known_linear_solvers
{
"eigen"
,
"lis"
,
"petsc"
};
20
21
namespace
MathLib
22
{
23
void
ignoreOtherLinearSolvers
(
const
BaseLib::ConfigTree
& config,
24
const
std::string& solver_name)
25
{
26
for
(
auto
const
&
s
:
known_linear_solvers
)
27
{
28
if
(
s
!= solver_name)
29
{
30
config.
ignoreConfigParameter
(
s
);
31
}
32
}
33
}
34
35
}
// namespace MathLib
ConfigTree.h
known_linear_solvers
static std::set< std::string > known_linear_solvers
Definition
LinearSolverOptions.cpp:19
LinearSolverOptions.h
BaseLib::ConfigTree
Definition
ConfigTree.h:107
BaseLib::ConfigTree::ignoreConfigParameter
void ignoreConfigParameter(std::string const ¶m) const
Definition
ConfigTree.cpp:197
MathLib
Definition
CreateComponent.h:32
MathLib::s
static const double s
Definition
GaussLegendreTet.cpp:102
MathLib::ignoreOtherLinearSolvers
void ignoreOtherLinearSolvers(const BaseLib::ConfigTree &config, const std::string &solver_name)
Definition
LinearSolverOptions.cpp:23
MathLib
LinAlg
LinearSolverOptions.cpp
Generated by
1.10.0