Revision a2f327970633c5810d2983db3fa14755eb7ef5b7 authored by Christoph Lehmann on 26 April 2023, 15:05:58 UTC, committed by Christoph Lehmann on 26 April 2023, 15:05:58 UTC
Draft: OpenMP parallelized assembly

See merge request ogs/ogs!4556
2 parent s 89c64e7 + 69d72e5
Raw File
LinearSolverOptions.cpp
#include "LinearSolverOptions.h"

#include <set>

#include "BaseLib/ConfigTree.h"

//! Configuration tag names of all known linear solvers for their
//! configuration in the project file.
//! Add your tag name here when you add a new solver.
static std::set<std::string> known_linear_solvers{"eigen", "lis", "petsc"};

namespace MathLib
{
void ignoreOtherLinearSolvers(const BaseLib::ConfigTree& config,
                              const std::string& solver_name)
{
    for (auto const& s : known_linear_solvers)
    {
        if (s != solver_name)
        {
            config.ignoreConfigParameter(s);
        }
    }
}

}  // namespace MathLib
back to top