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. --- spheres.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spheres.cpp') diff --git a/spheres.cpp b/spheres.cpp index 9ca2036..4b2237d 100644 --- a/spheres.cpp +++ b/spheres.cpp @@ -75,7 +75,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