DOpE
|
#include <voidlinearsolver.h>
Public Member Functions | |
VoidLinearSolver (ParameterReader ¶m_reader) | |
~VoidLinearSolver () | |
template<typename PROBLEM > | |
void | ReInit (PROBLEM &pde) |
template<typename PROBLEM , typename INTEGRATOR > | |
void | Solve (PROBLEM &pde, INTEGRATOR &integr, VECTOR &rhs, VECTOR &solution, bool force_matrix_build=false) |
Static Public Member Functions | |
static void | declare_params (ParameterReader ¶m_reader) |
This class provides a linear solve for the nonlinear solvers of DOpE. This one is a dummy implementation for certain cases where we know that we invert an identity matrix!
<VECTOR> | The vector type for the solution and righthandside data, |
DOpE::VoidLinearSolver< VECTOR >::VoidLinearSolver | ( | ParameterReader & | param_reader | ) |
DOpE::VoidLinearSolver< VECTOR >::~VoidLinearSolver | ( | ) |
|
static |
void DOpE::VoidLinearSolver< VECTOR >::ReInit | ( | PROBLEM & | pde | ) |
This Function should be called once after grid refinement, or changes in boundary values to recompute sparsity patterns, and constraint matrices.
void DOpE::VoidLinearSolver< VECTOR >::Solve | ( | PROBLEM & | pde, |
INTEGRATOR & | integr, | ||
VECTOR & | rhs, | ||
VECTOR & | solution, | ||
bool | force_matrix_build = false |
||
) |
Copys the Rhs to the Solution Vector, als other params are ignored!
rhs | Right Hand Side of the Equation. |
solution | The Approximate Solution of the Linear Equation. It is assumed to be zero! |
force_build_matrix | A boolean value, that indicates whether the Matrix should be build by the linear solver in the first iteration. The default is false, meaning that if we have no idea we don't want to build a matrix. |