Skip to content

Commit

Permalink
Fix std::isfinite issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
pelesh committed Feb 4, 2025
1 parent 1d90a5d commit a783929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/functionality/rand_gmres_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ int runTest(int argc, char *argv[], std::string solver_name)
<< FGMRES->getFinalResidualNorm()/norm_b <<" \n"
<< "\t Number of iterations : " << FGMRES->getNumIter() << "\n";

if (!isfinite(final_norm_first) || !isfinite(final_norm_second)) {
if (!std::isfinite(final_norm_first) || !std::isfinite(final_norm_second)) {
std::cout << "Result is not a finite number!\n";
error_sum++;
}
Expand Down

0 comments on commit a783929

Please sign in to comment.