diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-12-22 14:30:54 -0500 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-12-22 14:30:54 -0500 |
commit | bad5c476749c99030767d1f67ae5cbe9698c99f5 (patch) | |
tree | c79c3af8525a1c7544537f52e4115344f4e32a5d /src/animate_fracture.cpp | |
parent | 09200a607661f739782a966807d31345485e2c41 (diff) | |
download | fuse_networks-bad5c476749c99030767d1f67ae5cbe9698c99f5.tar.gz fuse_networks-bad5c476749c99030767d1f67ae5cbe9698c99f5.tar.bz2 fuse_networks-bad5c476749c99030767d1f67ae5cbe9698c99f5.zip |
system size now can take on non-integer values
Diffstat (limited to 'src/animate_fracture.cpp')
-rw-r--r-- | src/animate_fracture.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/animate_fracture.cpp b/src/animate_fracture.cpp index 10b63d0..62c5b1e 100644 --- a/src/animate_fracture.cpp +++ b/src/animate_fracture.cpp @@ -31,24 +31,28 @@ int main(int argc, char* argv[]) { int opt; unsigned int N = 1; - unsigned int Lx = 16; - unsigned int Ly = 16; + double Lx = 16.0; + double Ly = 16.0; double beta = 0.5; + double w = 0.01; - while ((opt = getopt(argc, argv, "N:X:Y:b:")) != -1) { + while ((opt = getopt(argc, argv, "X:Y:N:b:w:")) != -1) { switch (opt) { case 'N': N = (unsigned int)atof(optarg); break; case 'X': - Lx = atoi(optarg); + Lx = atof(optarg); break; case 'Y': - Ly = atoi(optarg); + Ly = atof(optarg); break; case 'b': beta = atof(optarg); break; + case 'w': + w = atof(optarg); + break; default: exit(1); } @@ -63,7 +67,7 @@ int main(int argc, char* argv[]) { std::mt19937 rng{seeds}; for (unsigned int trial = 0; trial < N; trial++) { - graph G(Lx, Ly, rng, 0.4); + graph G(Lx, Ly, rng, w); network network(G, &c); network.set_thresholds(beta, rng); network.fracture(meas); |