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 {
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
static std::set< std::string > known_linear_solvers
void ignoreConfigParameter(std::string const &param) const
Definition: ConfigTree.cpp:181
void ignoreOtherLinearSolvers(const BaseLib::ConfigTree &config, const std::string &solver_name)