Revision 8fd6ee75e21a7539d27aed1a2686f56752f06d79 authored by Haibing Shao on 23 September 2021, 09:27:57 UTC, committed by Haibing Shao on 24 September 2021, 14:45:02 UTC
correct naming and store the switch cosmetic change on create process file clang format the create process file fix Doxygen warning The parameter 'use_server_communication' belongs to the process 'HEAT_TRANSPORT_BHE'
1 parent 404859a
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 ...