summaryrefslogtreecommitdiff
path: root/src/fracture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fracture.cpp')
-rw-r--r--src/fracture.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/fracture.cpp b/src/fracture.cpp
index 5ba60e2..b82abca 100644
--- a/src/fracture.cpp
+++ b/src/fracture.cpp
@@ -38,10 +38,9 @@ int main(int argc, char* argv[]) {
unsigned n = 128;
double a = 1.0;
bool use_aN = false;
- bool one_side = false;
double w = 0.5;
- while ((opt = getopt(argc, argv, "N:X:Y:b:n:a:w:o")) != -1) {
+ while ((opt = getopt(argc, argv, "N:X:Y:b:n:a:w:")) != -1) {
switch (opt) {
case 'N':
N = (unsigned)atof(optarg);
@@ -66,9 +65,6 @@ int main(int argc, char* argv[]) {
case 'w':
w = atof(optarg);
break;
- case 'o':
- one_side = true;
- break;
default:
exit(1);
}
@@ -81,7 +77,7 @@ int main(int argc, char* argv[]) {
std::mt19937 rng{seeds};
if (use_aN) {
- ma meas(n, a, beta, w, one_side);
+ ma meas(n, a, beta, w);
for (unsigned trial = 0; trial < N; trial++) {
while (true) {
@@ -89,7 +85,7 @@ int main(int argc, char* argv[]) {
graph G(n, a, rng);
elastic_network fuse_network(G, &c, w);
fuse_network.set_thresholds(beta, rng);
- fuse_network.fracture(meas, one_side);
+ fuse_network.fracture(meas);
break;
} catch (std::exception &e) {
std::cout << e.what() << '\n';
@@ -100,7 +96,7 @@ int main(int argc, char* argv[]) {
break;
}
} else {
- ma meas(Lx, Ly, beta, w, one_side);
+ ma meas(Lx, Ly, beta, w);
for (unsigned trial = 0; trial < N; trial++) {
while (true) {
@@ -108,7 +104,7 @@ int main(int argc, char* argv[]) {
graph G(Lx, Ly);
elastic_network fuse_network(G, &c, w);
fuse_network.set_thresholds(beta, rng);
- fuse_network.fracture(meas, one_side);
+ fuse_network.fracture(meas);
break;
} catch (std::exception &e) {
std::cout << e.what() << '\n';