Skip to content
Snippets Groups Projects
Commit f97b0641 authored by Norihiro Watanabe's avatar Norihiro Watanabe Committed by Dmitri Naumov
Browse files

[Num/ODE] improve/correct log output in ConvergenceCriterionPerComponentResidual

parent fe80e404
No related branches found
No related tags found
No related merge requests found
...@@ -78,14 +78,14 @@ void ConvergenceCriterionPerComponentResidual::checkResidual( ...@@ -78,14 +78,14 @@ void ConvergenceCriterionPerComponentResidual::checkResidual(
*_dof_table, *_mesh); *_dof_table, *_mesh);
if (_is_first_iteration) { if (_is_first_iteration) {
INFO("Convergence criterion: |r0|=%.4e", norm_res); INFO("Convergence criterion, component %u: |r0|=%.4e", global_component, norm_res);
_residual_norms_0[global_component] = norm_res; _residual_norms_0[global_component] = norm_res;
} else { } else {
auto const norm_res0 = _residual_norms_0[global_component]; auto const norm_res0 = _residual_norms_0[global_component];
INFO( INFO(
"Convergence criterion, component %u: |r|=%.4e, |r0|=%.4e, " "Convergence criterion, component %u: |r|=%.4e, |r0|=%.4e, "
"|r|/|r0|=%.4e", "|r|/|r0|=%.4e",
norm_res, global_component, norm_res0, norm_res / norm_res0); global_component, norm_res, norm_res0, norm_res / norm_res0);
} }
satisfied_abs = satisfied_abs && norm_res < _abstols[global_component]; satisfied_abs = satisfied_abs && norm_res < _abstols[global_component];
......
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