summaryrefslogtreecommitdiff
path: root/spheres.cpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2020-02-26 00:00:16 -0500
committerJaron Kent-Dobias <jaron@kent-dobias.com>2020-02-26 00:00:16 -0500
commit6461165f4daea01c5baa1d969ee5c726fb4c559e (patch)
tree9946c3a04f5dd62e0cc78fcd34089613d0dd0c48 /spheres.cpp
parent98350b34d1826e1d6687f18c45b0fbc6a3488742 (diff)
downloadspace_wolff-6461165f4daea01c5baa1d969ee5c726fb4c559e.tar.gz
space_wolff-6461165f4daea01c5baa1d969ee5c726fb4c559e.tar.bz2
space_wolff-6461165f4daea01c5baa1d969ee5c726fb4c559e.zip
Finished fixes of new features.
Diffstat (limited to 'spheres.cpp')
-rw-r--r--spheres.cpp2
1 files changed, 1 insertions, 1 deletions
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<double, 2, double>* ss = new Spin<double, 2, double>();
ss->x = {(i / nx) * L / nx, (i % nx) * L / nx};