Fix verbosity

This commit is contained in:
Simon Giraudot 2019-01-29 13:31:54 +01:00
parent 74b7e92ef5
commit ac752c05a7
1 changed files with 8 additions and 4 deletions

View File

@ -606,19 +606,22 @@ public:
ok = copy.make_collapsible(copy_edge, copy_hull.begin(), ok = copy.make_collapsible(copy_edge, copy_hull.begin(),
copy_hull.end(), m_verbose); copy_hull.end(), m_verbose);
if (!ok) { if (!ok) {
// std::cerr << "simulation: failed (make collapsible)" << std::endl; if (m_verbose > 1)
std::cerr << "simulation: failed (make collapsible)" << std::endl;
return false; return false;
} }
ok = copy.check_validity_test(copy_edge); ok = copy.check_validity_test(copy_edge);
if (!ok) { if (!ok) {
std::cerr << "simulation: failed (validity test)" << std::endl; if (m_verbose > 1)
std::cerr << "simulation: failed (validity test)" << std::endl;
return false; return false;
} }
} }
ok = copy.check_kernel_test(copy_edge); ok = copy.check_kernel_test(copy_edge);
if (!ok) { if (!ok) {
std::cerr << "simulation: failed (kernel test)" << std::endl; if (m_verbose > 1)
std::cerr << "simulation: failed (kernel test)" << std::endl;
return false; return false;
} }
@ -626,7 +629,8 @@ public:
ok = copy.check_validity_test(copy_edge); ok = copy.check_validity_test(copy_edge);
if (!ok) { if (!ok) {
std::cerr << "simulation: failed (validity test)" << std::endl; if (m_verbose > 1)
std::cerr << "simulation: failed (validity test)" << std::endl;
return false; return false;
} }