summaryrefslogtreecommitdiff
path: root/lib/src
diff options
context:
space:
mode:
Diffstat (limited to 'lib/src')
-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);
}