The system matrix for a problem may be poorly conditioned, preconditioners are supposed to efficiently estimate the inverse of the system matrix so that a simpler problem, with the approximate identity matrix may be solved instead. The problem is that the best approach to this varies with different fields. The preconditioner system implements infrastructure to define seperate preconditioners for different fields which are then composed together.
14 lines
511 B
C++
14 lines
511 B
C++
#pragma once
|
|
|
|
#include "serif/solver/preconditioner/contract.hpp"
|
|
|
|
namespace serif::solver::preconditioner::strategies::inverse
|
|
{
|
|
/** @brief Directly solve a small dense system; optionally reject an unreliable infinity-norm condition estimate. */
|
|
struct DenseDirect final
|
|
{
|
|
static constexpr ApplicationContract application_contract{ApplicationContract::fixed_linear};
|
|
double minimum_reciprocal_condition{0.0};
|
|
};
|
|
} // namespace serif::solver::preconditioner::strategies::inverse
|