OGS
LinearSolverOptions.cpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2
// SPDX-License-Identifier: BSD-3-Clause
3
4
#include "
LinearSolverOptions.h
"
5
6
#include <set>
7
8
#include "
BaseLib/ConfigTree.h
"
9
13
static
std::set<std::string>
known_linear_solvers
{
"eigen"
,
"lis"
,
"petsc"
};
14
15
namespace
MathLib
16
{
17
void
ignoreOtherLinearSolvers
(
const
BaseLib::ConfigTree
& config,
18
const
std::string& solver_name)
19
{
20
for
(
auto
const
&
s
:
known_linear_solvers
)
21
{
22
if
(
s
!= solver_name)
23
{
24
config.
ignoreConfigParameter
(
s
);
25
}
26
}
27
}
28
29
}
// namespace MathLib
ConfigTree.h
known_linear_solvers
static std::set< std::string > known_linear_solvers
Definition
LinearSolverOptions.cpp:13
LinearSolverOptions.h
BaseLib::ConfigTree
Definition
ConfigTree.h:101
BaseLib::ConfigTree::ignoreConfigParameter
void ignoreConfigParameter(std::string const ¶m) const
Definition
ConfigTree.cpp:212
MathLib
Definition
CreateComponent.h:23
MathLib::s
static const double s
Definition
GaussLegendreTet.cpp:95
MathLib::ignoreOtherLinearSolvers
void ignoreOtherLinearSolvers(const BaseLib::ConfigTree &config, const std::string &solver_name)
Definition
LinearSolverOptions.cpp:17
MathLib
LinAlg
LinearSolverOptions.cpp
Generated by
1.14.0