summaryrefslogtreecommitdiff
path: root/dimers_torus.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 /dimers_torus.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 'dimers_torus.cpp')
-rw-r--r--dimers_torus.cpp2
1 files changed, 1 insertions, 1 deletions
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<double, 2, Dimer<double, D>>* ss = new Spin<double, 2, Dimer<double, D>>();
ss->x = {(i / nx) * L / nx, (i % nx) * L / nx};