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

Use isinf and isnan from std::, to avoid ambiguities

[[Imported from SVN: r12435]]
parent a7dff87d
Branches
Tags
No related merge requests found
......@@ -235,7 +235,7 @@ void TruncatedCGSolver<MatrixType, VectorType>::solve()
normOfOldCorrection = normOfCorrection;
if (!isinf(convRate) && !isnan(convRate)) {
if (!std::isinf(convRate) && !std::isnan(convRate)) {
totalConvRate *= convRate;
this->maxTotalConvRate_ = std::max(this->maxTotalConvRate_, std::pow(totalConvRate, 1/((double)convRateCounter+1)));
convRateCounter++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment