DOpE
Public Member Functions | Static Public Member Functions
DOpE::VoidLinearSolver< VECTOR > Class Template Reference

#include <voidlinearsolver.h>

Public Member Functions

 VoidLinearSolver (ParameterReader &param_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 &param_reader)
 

Detailed Description

template<typename VECTOR>
class DOpE::VoidLinearSolver< VECTOR >

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!

Template Parameters
<VECTOR>The vector type for the solution and righthandside data,

Constructor & Destructor Documentation

template<typename VECTOR >
DOpE::VoidLinearSolver< VECTOR >::VoidLinearSolver ( ParameterReader param_reader)
template<typename VECTOR >
DOpE::VoidLinearSolver< VECTOR >::~VoidLinearSolver ( )

Member Function Documentation

template<typename VECTOR >
void DOpE::VoidLinearSolver< VECTOR >::declare_params ( ParameterReader param_reader)
static
template<typename VECTOR >
template<typename PROBLEM >
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.

template<typename VECTOR >
template<typename PROBLEM , typename INTEGRATOR >
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!

Parameters
rhsRight Hand Side of the Equation.
solutionThe Approximate Solution of the Linear Equation. It is assumed to be zero!
force_build_matrixA 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.

The documentation for this class was generated from the following file: