From 5a98729ab3cb5aeda6f3bd7288c7ee6bc59c0906 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Wed, 24 Jul 2019 00:05:08 -0400 Subject: readded spatial measuremnets only for voronoi, and only for square systems --- src/animate.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/animate.cpp') diff --git a/src/animate.cpp b/src/animate.cpp index b1031dc..a7b6173 100644 --- a/src/animate.cpp +++ b/src/animate.cpp @@ -17,6 +17,7 @@ void animate::pre_fracture(const network &n) { lv = std::numeric_limits::lowest(); avalanches = {}; boost::remove_edge_if(trivial, G); + seen_guy = false; glClearColor(1.0f, 1.0f, 1.0f, 1.0f ); glLineWidth(5); @@ -135,7 +136,7 @@ void animate::bond_broken(const network& n, const current_info& cur, unsigned i) } glEnd(); glFlush(); - if (nw > 2) {std::cout << "\n"; getchar();} + if (nw > 2 && !seen_guy) {seen_guy = true; getchar();} } void animate::post_fracture(network &n) { -- cgit v1.2.3-70-g09d2