Skip to content
Snippets Groups Projects
Commit c024db84 authored by Jö Fahlke's avatar Jö Fahlke
Browse files

[test][SolverAbort] Check that the solver aborts when given an unsolvable system to solve.

Here we try to solve A*x=b for x, with
```
      / 1  1 \       / 1 \
  A = |      |,  b = |   |,
      \ 1  1 /       \ 2 /
```
which has no solution.  In the CGSolver, the this leads to a NaN defect after
46 iterations.  In BiCGSTABSolver this leads to "abs(h) < EPSILON" after 1.5
iterations.

BiCGSTABSolver and RestartedGMResSolver also throw SolverAbort when they
detect "breakdown", checking for that is left as a todo.
parent 87022110
Branches
Tags
1 merge request!36Abort CGSolver when the defect is invalid
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment