IPPL-framework / ippl

IPPL is a C++ library to develop performance portable code for fully Eulerian, Lagrangian or hybrid Eulerian-Lagrangian methods.
https://ippl-framework.github.io/ippl/
GNU General Public License v3.0
21 stars 20 forks source link

PCG does not throw an exception if the preconditioner is not set #294

Closed s-mayani closed 6 months ago

s-mayani commented 6 months ago

When using the Preconditioned CG solver, one should throw an exception when the preconditioner has not been set by the user, or have a default one set, because otherwise there is a segmentation fault further down the line in the operator usage which does not give any error information to the user.