Skip to content
Snippets Groups Projects
Commit 3fadd1e5 authored by Markus Wolff's avatar Markus Wolff
Browse files

SuperLU backend now checks the solution vector for nan's/inf's which can

appear if the solver has not found a solution

   - if there are nan's or inf's in the solution vector, converged (the return of the solve() function) is set
     to false
   - reviewed by Klaus



git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@8251 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent fdcf4c16
No related branches found
No related tags found
No related merge requests found
...@@ -543,6 +543,19 @@ public: ...@@ -543,6 +543,19 @@ public:
solver.apply(x, bTmp, result_); solver.apply(x, bTmp, result_);
int size = x.size();
for (int i = 0; i < size; i++)
{
for (int j = 0; j < blockSize; j++)
{
if (isnan(x[i][j]) || isinf(x[i][j]))
{
result_.converged = false;
break;
}
}
}
return result_.converged; return result_.converged;
} }
......
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