Commit a56e0c93 authored by Damien Leroux's avatar Damien Leroux
Browse files

Fixed the model checks.

parent f8749dd1
......@@ -2393,8 +2393,10 @@ void analysis_report::report_final_model(model_manager& mm)
n_constraints -= (*p)->size();
}
auto res = mm.vMcurrent->residuals().bottomRows(n_constraints);
if (res.lpNorm<0>() > CONSTRAINT_RESIDUAL_EPSILON) {
MSG_ERROR("Inconsistent contraints for model matrix.", "Report to the developers");
if (res.lpNorm<1>() > CONSTRAINT_RESIDUAL_EPSILON) {
MSG_DEBUG(mm.vMcurrent->residuals().transpose());
MSG_DEBUG(res.transpose());
MSG_ERROR("Inconsistent contraints for model matrix. " << res.lpNorm<1>() << " > " << CONSTRAINT_RESIDUAL_EPSILON, "Report to the developers");
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment