I recently came accross a bug in a software I am contributing to causing some NaN to appear. In this software, I want to solve a system Ax=b using a sparse linear solver( Hypre ) but it failed to converge showing this message:
ERROR detected by Hypre ... BEGIN
ERROR -- hypre_PCGSolve: INFs and/or NaNs detected in input.
User probably placed non-numerics in supplied b.
Returning error flag += 101. Program not terminated.
ERROR detected by Hypre ... END
Hypre PCG finish in 0 iterations with a final res norm of 0