diff options
Diffstat (limited to 'tests/EquationSystem-Vector.cpp')
-rw-r--r-- | tests/EquationSystem-Vector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/EquationSystem-Vector.cpp b/tests/EquationSystem-Vector.cpp index b121026..6ac5ae9 100644 --- a/tests/EquationSystem-Vector.cpp +++ b/tests/EquationSystem-Vector.cpp @@ -60,7 +60,7 @@ main() << "Rejections: " << integrator.rejections() << std::endl; double error = norm(expected - actual)/norm(expected); - if (error > 4.0e-6) { + if (error > 4.0e-6 || !std::isfinite(error)) { std::cerr << "Error: " << 100.0*error << "%" << std::endl; return EXIT_FAILURE; } else { |