iterative-solver 0.0
 
Loading...
Searching...
No Matches
iterative_solver_problem Module Reference

Data Types

type  problem
 Abstract class defining the problem-specific interface for the simplified solver interface to IterativeSolver. More...
 

Functions/Subroutines

logical function diagonals (this, d)
 Optionally provide the diagonal elements of the underlying kernel. If implemented and returning true, the provided diagonals will be used by the base precondition() function for preconditioning (and therefore the precondition() function does not need to be reimplemented), and, in the case of linear problems, for selection of the P space. Otherwise, preconditioning will be done with precondition(), and any P space has to be provided manually.
 

Function/Subroutine Documentation

◆ diagonals()

logical function iterative_solver_problem::diagonals ( class(problem), intent(in)  this,
double precision, dimension(:), intent(inout)  d 
)

Optionally provide the diagonal elements of the underlying kernel. If implemented and returning true, the provided diagonals will be used by the base precondition() function for preconditioning (and therefore the precondition() function does not need to be reimplemented), and, in the case of linear problems, for selection of the P space. Otherwise, preconditioning will be done with precondition(), and any P space has to be provided manually.

Parameters
dOn exit, contains the diagonal elements
Returns
Whether diagonals have been provided.