summaryrefslogtreecommitdiff
path: root/src/percolation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/percolation.cpp')
-rw-r--r--src/percolation.cpp26
1 files changed, 24 insertions, 2 deletions
diff --git a/src/percolation.cpp b/src/percolation.cpp
index 757ab44..383d5e6 100644
--- a/src/percolation.cpp
+++ b/src/percolation.cpp
@@ -31,8 +31,8 @@ int main(int argc, char* argv[]) {
int opt;
unsigned N = 1;
- double Lx = 16;
- double Ly = 16;
+ unsigned Lx = 16;
+ unsigned Ly = 16;
double beta = 0.0001;
unsigned n = 128;
@@ -94,6 +94,28 @@ int main(int argc, char* argv[]) {
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';
+ }
+ }
+ if (quit.load())
+ break;
+ */
+ }
}
CHOL_F(finish)(&c);