Skip to content
Snippets Groups Projects
Commit 1a6eb3f8 authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

take isinf and isnan from std, to avoid ambiguities

[[Imported from SVN: r11785]]
parent 23f40eae
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,7 @@ void LoopSolver<VectorType, BitVectorType>::solve()
if (this->useRelativeError_ && !std::isnan(error/oldNorm))
error = error / oldNorm;
if (!isinf(convRate) && !isnan(convRate) && i>0)
if (!std::isinf(convRate) && !std::isnan(convRate) && i>0)
{
totalConvRate *= convRate;
this->maxTotalConvRate_ = std::max(this->maxTotalConvRate_, std::pow(totalConvRate, 1/((real_type)convRateCounter+1)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment