From 6461165f4daea01c5baa1d969ee5c726fb4c559e Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Wed, 26 Feb 2020 00:00:16 -0500 Subject: Finished fixes of new features. --- dimers_torus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dimers_torus.cpp') diff --git a/dimers_torus.cpp b/dimers_torus.cpp index 74cf47e..ec7c73a 100644 --- a/dimers_torus.cpp +++ b/dimers_torus.cpp @@ -86,7 +86,7 @@ int main(int argc, char* argv[]) { sphere.s.resize(n); - unsigned nx = floor(sqrt(n)); + unsigned nx = ceil(sqrt(n)); for (unsigned i = 0; i < sphere.s.size(); i++) { Spin>* ss = new Spin>(); ss->x = {(i / nx) * L / nx, (i % nx) * L / nx}; -- cgit v1.2.3-54-g00ecf