From 749247d24cca4657570e6c2a974321a94a49a0cc Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Tue, 11 Jun 2019 09:52:30 -0400 Subject: reenabled the error catching in percolation --- src/percolation.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/percolation.cpp b/src/percolation.cpp index 76731f4..0b1d0ad 100644 --- a/src/percolation.cpp +++ b/src/percolation.cpp @@ -76,15 +76,12 @@ int main(int argc, char* argv[]) { pm meas(n, a); for (unsigned trial = 0; trial < N; trial++) { - /* while (true) { try { - */ graph G(n, a, rng); percolation_network fuse_network(G, &c); fuse_network.set_thresholds(beta, rng); fuse_network.fracture(meas); - /* break; } catch (std::exception &e) { std::cout << e.what() << '\n'; @@ -92,21 +89,17 @@ int main(int argc, char* argv[]) { } if (quit.load()) break; - */ } } else { pm meas(Lx, Ly); for (unsigned trial = 0; trial < N; trial++) { - /* while (true) { try { - */ graph G(Lx, Ly); percolation_network fuse_network(G, &c); fuse_network.set_thresholds(beta, rng); fuse_network.fracture(meas); - /* break; } catch (std::exception &e) { std::cout << e.what() << '\n'; @@ -114,7 +107,6 @@ int main(int argc, char* argv[]) { } if (quit.load()) break; - */ } } -- cgit v1.2.3-54-g00ecf