diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2019-06-11 09:52:30 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2019-06-11 09:52:30 -0400 |
commit | 749247d24cca4657570e6c2a974321a94a49a0cc (patch) | |
tree | 32651975bc37101e72aecf683a0a000aa5f80c59 | |
parent | f8321b4b89e114dffc02b4741785fdca60f1b31e (diff) | |
download | fuse_networks-749247d24cca4657570e6c2a974321a94a49a0cc.tar.gz fuse_networks-749247d24cca4657570e6c2a974321a94a49a0cc.tar.bz2 fuse_networks-749247d24cca4657570e6c2a974321a94a49a0cc.zip |
reenabled the error catching in percolation
-rw-r--r-- | src/percolation.cpp | 8 |
1 files changed, 0 insertions, 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; - */ } } |