diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2020-02-26 00:00:16 -0500 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2020-02-26 00:00:16 -0500 |
commit | 6461165f4daea01c5baa1d969ee5c726fb4c559e (patch) | |
tree | 9946c3a04f5dd62e0cc78fcd34089613d0dd0c48 /spheres.cpp | |
parent | 98350b34d1826e1d6687f18c45b0fbc6a3488742 (diff) | |
download | space_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.cpp | 2 |
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}; |