summaryrefslogtreecommitdiff
path: root/src/Alpha_complex/utilities/alpha_complex_3d_persistence.cpp
diff options
context:
space:
mode:
authorglisse <glisse@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-11-30 16:17:51 +0000
committerglisse <glisse@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-11-30 16:17:51 +0000
commitea60fe8e63b7bb459cf80e2d5614e02b8590952e (patch)
tree5375fe6dd948179d125bedf6139a7e7ba5febe4f /src/Alpha_complex/utilities/alpha_complex_3d_persistence.cpp
parent5e05e851666daa75d96780f194faecc2f6ada6ca (diff)
"This shall not happen": that's what assert is for.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/misc-glisse@3000 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 072f467bf3086b8e014c54c059f67dbd4f563ad7
Diffstat (limited to 'src/Alpha_complex/utilities/alpha_complex_3d_persistence.cpp')
-rw-r--r--src/Alpha_complex/utilities/alpha_complex_3d_persistence.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Alpha_complex/utilities/alpha_complex_3d_persistence.cpp b/src/Alpha_complex/utilities/alpha_complex_3d_persistence.cpp
index d839ea19..f4a14ae3 100644
--- a/src/Alpha_complex/utilities/alpha_complex_3d_persistence.cpp
+++ b/src/Alpha_complex/utilities/alpha_complex_3d_persistence.cpp
@@ -169,10 +169,9 @@ int main(int argc, char **argv) {
std::cout << "filtration = " << filtr << std::endl;
#endif // DEBUG_TRACES
simplex_tree.insert_simplex(the_simplex, filtr);
- if (the_alpha_value_iterator != the_alpha_values.end())
- ++the_alpha_value_iterator;
- else
- std::cout << "This shall not happen" << std::endl;
+ GUDHI_CHECK(the_alpha_value_iterator != the_alpha_values.end(),
+ "CGAL provided more simplices than values");
+ ++the_alpha_value_iterator;
}
#ifdef DEBUG_TRACES