Skip to content
Snippets Groups Projects
Commit e925db26 authored by joergbuchwald's avatar joergbuchwald Committed by Dmitri Naumov
Browse files

check solution vector for NaN

parent 8e1b77d9
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,7 @@ public:
EigenOption::getSolverName(opt.solver_type));
x = solver_.solve(b);
if (solver_.info() != Eigen::Success)
if (solver_.info() != Eigen::Success || x.hasNaN())
{
ERR("Failed during Eigen linear solve");
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment