Add some verbose if the solver fails

This commit is contained in:
Mael Rouxel-Labbé 2019-06-19 11:28:53 +02:00
parent 3a8a7c1f26
commit aa6a1907ba
2 changed files with 7 additions and 0 deletions

View File

@ -160,9 +160,16 @@ void smooth_shape(const FaceRange& faces,
smoother.setup_system(A, bx, by, bz, stiffness, time);
if(smoother.solve_system(A, Xx, Xy, Xz, bx, by, bz, solver))
{
smoother.update_mesh(Xx, Xy, Xz);
}
else
{
#ifdef CGAL_PMP_SMOOTHING_VERBOSE
std::cerr << "Failed to solve system!" << std::endl;
#endif
break;
}
#ifdef CGAL_PMP_SMOOTHING_OUTPUT_INTERMEDIARY_STEPS
std::stringstream oss;