This class exists as a hack to get access to the residual vector for the custom convergence criterion because dealii doesn't provide it for some reason. The function print_vectors gets called before the convergence check in the same scope and is overridable. Be careful, because the pointers are only valid during the linear solve, so they shouldn't be called outside of that context.
More...
#include <linear_helper.h>
template<typename number>
class CGSolver< number >
This class exists as a hack to get access to the residual vector for the custom convergence criterion because dealii doesn't provide it for some reason. The function print_vectors gets called before the convergence check in the same scope and is overridable. Be careful, because the pointers are only valid during the linear solve, so they shouldn't be called outside of that context.
◆ AddData
template<typename number>
◆ BaseClass
template<typename number>
◆ CGSolver() [1/2]
template<typename number>
◆ CGSolver() [2/2]
template<typename number>
Constructor. Use an object of type GrowingVectorMemory as a default to allocate memory.
◆ solve_better()
template<typename number>
Solve method we are replacing in prisms-pf because we need access to the residual.
The documentation for this class was generated from the following file: