Skip to content
Snippets Groups Projects
Commit 83d3d287 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Restored commented std::isnan check in IterativeSolver

Works fine with g++ 5.5 and nvcc 8.0 in Arch Linux. File a bug report on
Gitlab if you have problems.
parent 1b900775
No related branches found
No related tags found
No related merge requests found
......@@ -107,12 +107,7 @@ bool IterativeSolver< Real, Index> :: checkNextIteration()
{
this->refreshSolverMonitor();
if(
#ifndef HAVE_CUDA
std::isnan( this->getResidue() ) ||
// TODO: Fix this !!!!
// this does not work (at least) with nvcc 8.0 and g++ 5.4
#endif
if( std::isnan( this->getResidue() ) ||
this->getIterations() > this->getMaxIterations() ||
( this->getResidue() > this->getDivergenceResidue() && this->getIterations() >= this->getMinIterations() ) ||
( this->getResidue() < this->getConvergenceResidue() && this->getIterations() >= this->getMinIterations() ) )
......
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