Revision b2766f5923c94aea0c8f7bb62242f34e2976b156 authored by Christoph Lehmann on 10 November 2021, 12:23:45 UTC, committed by Christoph Lehmann on 10 November 2021, 12:23:45 UTC
This reverts commit b9ba034d9738504890359c908b63bd31be8b5fd0.
1 parent 48d0c8e
LinearSolverOptions.h
/**
* \file
* \copyright
* Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#pragma once
#include "BaseLib/ConfigTree.h"
namespace MathLib
{
/*! Ignore linear solver settings not needed for the selected one.
*
* The project files support specifying linear solver options for all
* known solver libraries (currently PETSC, LIS, Eigen) even though for
* a specific build only one of those settings is used.
* That clearly conflicts with the requirement of the config tree that
* each setting present in the project file must be read exactly once.
*
* The purpose of this function is to explicitly ignore all the settings
* that are not relevant for the currently used linear solver
*
* \param config The config tree snippet for the linear solver.
* \param solver_name The tag under which the relevant configuration is found.
* All other configurations will be ignored.
*
* This function is currently used in the option parsing code of our
* \c EigenLinearSolver, \c LisOption and \c PETScLinearSolver
*/
void ignoreOtherLinearSolvers(BaseLib::ConfigTree const& config,
std::string const& solver_name);
} // namespace MathLib
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...