From 67a11a04b1a16767e6ed30ed022ed9a0d3b07f76 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Sun, 24 Feb 2019 17:23:29 -0500 Subject: fixed problem computing Lx and Ly from a and n --- lib/src/graph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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); } -- cgit v1.2.3-70-g09d2