summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2019-04-19 13:31:38 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2019-04-19 13:31:38 -0400
commitafe7000d6147cefd030413cb3d051c2a6260f608 (patch)
treebaec253a0fe66c23d6e404444fea8b0215195ea4 /src
parent1cd41b27808da0fe558cfe31dfc370a71ea2dc50 (diff)
downloadfuse_networks-afe7000d6147cefd030413cb3d051c2a6260f608.tar.gz
fuse_networks-afe7000d6147cefd030413cb3d051c2a6260f608.tar.bz2
fuse_networks-afe7000d6147cefd030413cb3d051c2a6260f608.zip
changed some constants
Diffstat (limited to 'src')
-rw-r--r--src/animate_fracture.cpp2
-rw-r--r--src/fracture.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/animate_fracture.cpp b/src/animate_fracture.cpp
index 2d64072..66afc83 100644
--- a/src/animate_fracture.cpp
+++ b/src/animate_fracture.cpp
@@ -57,7 +57,7 @@ int main(int argc, char* argv[]) {
cholmod_common c;
CHOL_F(start)(&c);
- animate meas(Lx, Ly, 512, argc, argv);
+ animate meas(Lx, Ly, 700, argc, argv);
randutils::auto_seed_128 seeds;
std::mt19937 rng{seeds};
diff --git a/src/fracture.cpp b/src/fracture.cpp
index 2651668..f697617 100644
--- a/src/fracture.cpp
+++ b/src/fracture.cpp
@@ -73,8 +73,8 @@ int main(int argc, char* argv[]) {
std::mt19937 rng{seeds};
if (use_aN) {
- unsigned Mx = pow(2, ceil(log2(4*sqrt(2*n*a))));
- unsigned My = pow(2, ceil(log2(4*sqrt(2*n/a))));
+ unsigned Mx = (unsigned)4*sqrt(2*n*a);
+ unsigned My = (unsigned)4*sqrt(2*n/a);
ma meas(n, a, Mx, My, beta);