summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2019-02-24 17:23:29 -0500
committerJaron Kent-Dobias <jaron@kent-dobias.com>2019-02-24 17:23:29 -0500
commit67a11a04b1a16767e6ed30ed022ed9a0d3b07f76 (patch)
treeee4da8dc3a90f99c8857c8507299da3ad800e8d5 /lib
parentf861195c1416220c4039bda4d1cbf8c3aab07528 (diff)
downloadfuse_networks-67a11a04b1a16767e6ed30ed022ed9a0d3b07f76.tar.gz
fuse_networks-67a11a04b1a16767e6ed30ed022ed9a0d3b07f76.tar.bz2
fuse_networks-67a11a04b1a16767e6ed30ed022ed9a0d3b07f76.zip
fixed problem computing Lx and Ly from a and n
Diffstat (limited to 'lib')
-rw-r--r--lib/src/graph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/src/graph.cpp b/lib/src/graph.cpp
index 8aa8877..364f339 100644
--- a/lib/src/graph.cpp
+++ b/lib/src/graph.cpp
@@ -152,7 +152,7 @@ graph::graph(double Lx, double Ly, std::mt19937& rng) {
}
graph::graph(unsigned n, double a, std::mt19937& rng) {
- L = {2 * n * a, 2 * n / a};
+ L = {sqrt(2 * n * a), sqrt(2 * n / a)};
this->helper(n, rng);
}