Skip to content
Snippets Groups Projects
Commit 055d2006 authored by Dmitri Naumov's avatar Dmitri Naumov Committed by Dmitri Naumov
Browse files

[NL] Explicit quiet NaN in DeltaX crit. output.

parent 0083c995
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,9 @@ void ConvergenceCriterionDeltaX::checkDeltaX(const GlobalVector& minus_delta_x, ...@@ -36,7 +36,9 @@ void ConvergenceCriterionDeltaX::checkDeltaX(const GlobalVector& minus_delta_x,
auto norm_x = MathLib::LinAlg::norm(x, _norm_type); auto norm_x = MathLib::LinAlg::norm(x, _norm_type);
INFO("Convergence criterion: |dx|=%.4e, |x|=%.4e, |dx|/|x|=%.4e", error_dx, INFO("Convergence criterion: |dx|=%.4e, |x|=%.4e, |dx|/|x|=%.4e", error_dx,
norm_x, error_dx / norm_x); norm_x,
(norm_x == 0. ? std::numeric_limits<double>::quiet_NaN()
: (error_dx / norm_x)));
bool satisfied_abs = false; bool satisfied_abs = false;
bool satisfied_rel = false; bool satisfied_rel = false;
......
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