rebound 5.2.0__tar.gz → 5.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rebound-5.2.0/rebound.egg-info → rebound-5.2.2}/PKG-INFO +2 -2
- {rebound-5.2.0 → rebound-5.2.2}/README.md +1 -1
- {rebound-5.2.0 → rebound-5.2.2}/pyproject.toml +1 -1
- {rebound-5.2.0 → rebound-5.2.2}/rebound/simulation.py +1 -1
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_whfast512.py +32 -14
- {rebound-5.2.0 → rebound-5.2.2/rebound.egg-info}/PKG-INFO +2 -2
- {rebound-5.2.0 → rebound-5.2.2}/setup.py +8 -1
- {rebound-5.2.0 → rebound-5.2.2}/src/binarydata.c +6 -2
- {rebound-5.2.0 → rebound-5.2.2}/src/rebound.c +1 -1
- {rebound-5.2.0 → rebound-5.2.2}/LICENSE +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/MANIFEST.in +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/__init__.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/binarydata_field_descriptor.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/citations.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/frequency_analysis.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/horizons.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/integrator.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/ode.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/orbit.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/particle.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/particles.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/plotting.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/rotation.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/simulationarchive.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/__init__.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_additional_forces.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_binary_fields.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_boundary.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_bs.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_collisions.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_copy.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_data.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_eos.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_fpcontract.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_frequency_analysis.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_gravity.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_horizons.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_import.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_integrator.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_janus.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_leapfrog.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_megno.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_mercurius.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_modify_orbital_parameters.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_name.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_orbital_elements.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_particle.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_pickle.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_plotting.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_post_timestep_modifications.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_random.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_restart_mercurius.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_rotations.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_saba.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_serialize.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_server.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_shearingsheet.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_simulation.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_simulationarchive.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_simulationarchive_matrix.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_size_of_simulation.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_tponly_encounter.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_trace.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_trace_full_bs.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_trace_full_ias15.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_transformations.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_units.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_variational.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_whfast.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_whfast_advanced.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tests/test_whfast_testparticles.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/tools.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/units.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/variation.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/vectors.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound/widget.py +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound.egg-info/SOURCES.txt +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound.egg-info/dependency_links.txt +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/rebound.egg-info/top_level.txt +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/setup.cfg +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/binarydata.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/boundary.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/boundary.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/collision.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/collision.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/communication_mpi.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/communication_mpi.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/derivatives.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/derivatives.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/display.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/display.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/fmemopen.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/fmemopen.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/frequency_analysis.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/frequency_analysis.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/glad.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/glad.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/gravity.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/gravity.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/integrator_bs.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/integrator_bs.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/integrator_eos.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/integrator_eos.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/integrator_ias15.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/integrator_ias15.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/integrator_janus.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/integrator_janus.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/integrator_leapfrog.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/integrator_leapfrog.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/integrator_mercurius.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/integrator_mercurius.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/integrator_saba.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/integrator_saba.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/integrator_sei.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/integrator_sei.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/integrator_trace.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/integrator_trace.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/integrator_whfast.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/integrator_whfast.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/integrator_whfast512.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/integrator_whfast512.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/integrator_whfast512.s +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/khrplatform.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/output.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/output.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/particle.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/particle.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/rebound.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/rebound_internal.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/rotations.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/rotations.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/server.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/server.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/simplefont.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/simulation.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/simulation.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/simulationarchive.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/simulationarchive.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/tools.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/tools.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/transformations.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/transformations.h +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/tree.c +0 -0
- {rebound-5.2.0 → rebound-5.2.2}/src/tree.h +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rebound
|
|
3
|
-
Version: 5.2.
|
|
3
|
+
Version: 5.2.2
|
|
4
4
|
Summary: An open-source multi-purpose N-body code
|
|
5
5
|
Author-email: Hanno Rein <hanno@hanno-rein.de>
|
|
6
6
|
License-Expression: GPL-3.0-only
|
|
@@ -17,7 +17,7 @@ Description-Content-Type: text/markdown
|
|
|
17
17
|
License-File: LICENSE
|
|
18
18
|
Dynamic: license-file
|
|
19
19
|
|
|
20
|
-
[](https://rebound.hanno-rein.de)
|
|
21
21
|
[](https://badge.fury.io/py/rebound)
|
|
22
22
|
[](https://github.com/hannorein/rebound/blob/main/LICENSE)
|
|
23
23
|
[](https://rebound.hanno-rein.de/)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[](https://rebound.hanno-rein.de)
|
|
2
2
|
[](https://badge.fury.io/py/rebound)
|
|
3
3
|
[](https://github.com/hannorein/rebound/blob/main/LICENSE)
|
|
4
4
|
[](https://rebound.hanno-rein.de/)
|
|
@@ -92,7 +92,7 @@ class Simulation(Structure):
|
|
|
92
92
|
|
|
93
93
|
# Only allow attributes which are fields.
|
|
94
94
|
# Exceptions are listed here. Used to keep reference for function pointers.
|
|
95
|
-
__slots__ = ["_afp", "_colrfp", "_corfp", "_posttmp", "_pretmp", "_simulation_needsfree_", "_extras_ref"]
|
|
95
|
+
__slots__ = ["_afp", "_colrfp", "_corfp", "_hb", "_posttmp", "_pretmp", "_simulation_needsfree_", "_extras_ref"]
|
|
96
96
|
|
|
97
97
|
def __new__(cls, *args, **kw):
|
|
98
98
|
clibrebound.reb_simulation_create.restype = POINTER(Simulation)
|
|
@@ -19,14 +19,32 @@ def gr_potential(sim):
|
|
|
19
19
|
return H
|
|
20
20
|
|
|
21
21
|
class TestIntegratorWHFast512(unittest.TestCase):
|
|
22
|
+
def avx512_available(self):
|
|
23
|
+
if not rebound.avx512_available: return False
|
|
24
|
+
try:
|
|
25
|
+
sim = rebound.Simulation()
|
|
26
|
+
sim.add("solar system")
|
|
27
|
+
sim.integrator = "whfast512"
|
|
28
|
+
sim.dt = 6/365.25*2*math.pi
|
|
29
|
+
sim.exact_finish_time = 0
|
|
30
|
+
sim.integrator.concatenate_steps = 1
|
|
31
|
+
sim.steps(1)
|
|
32
|
+
except RuntimeError:
|
|
33
|
+
return False
|
|
34
|
+
return True
|
|
35
|
+
|
|
36
|
+
|
|
22
37
|
def test_whfast512_avx512_available(self):
|
|
23
38
|
if not rebound.avx512_available:
|
|
24
39
|
print("\n::error:: AVX512 is not supported by this CPU. Cannot run WHFast512 unit tests.")
|
|
25
40
|
else:
|
|
26
|
-
|
|
41
|
+
if not self.avx512_available():
|
|
42
|
+
print("\n::notice:: AVX512 should be available according to the C functio reb_avx512_available(), but a test simulation returns an error.")
|
|
43
|
+
else:
|
|
44
|
+
print("\n::notice:: AVX512 is supported by this CPU. Running WHFast512 units tests.")
|
|
27
45
|
|
|
28
46
|
def test_whfast512_basic(self):
|
|
29
|
-
if not
|
|
47
|
+
if not self.avx512_available(): return
|
|
30
48
|
sim = rebound.Simulation()
|
|
31
49
|
sim.add("solar system")
|
|
32
50
|
sim.integrator = "whfast512"
|
|
@@ -45,7 +63,7 @@ class TestIntegratorWHFast512(unittest.TestCase):
|
|
|
45
63
|
self.assertLess(math.fabs((e0-e1)/e0),2e-9)
|
|
46
64
|
|
|
47
65
|
def test_whfast512_corrector(self):
|
|
48
|
-
if not
|
|
66
|
+
if not self.avx512_available(): return
|
|
49
67
|
sim = rebound.Simulation()
|
|
50
68
|
sim.add("solar system")
|
|
51
69
|
sim.integrator = "whfast512"
|
|
@@ -63,7 +81,7 @@ class TestIntegratorWHFast512(unittest.TestCase):
|
|
|
63
81
|
self.assertLess(math.fabs((e0-e1)/e0),2e-12)
|
|
64
82
|
|
|
65
83
|
def test_whfast512_gr(self):
|
|
66
|
-
if not
|
|
84
|
+
if not self.avx512_available(): return
|
|
67
85
|
sim = rebound.Simulation()
|
|
68
86
|
sim.add("solar system")
|
|
69
87
|
sim.integrator = "whfast512"
|
|
@@ -83,7 +101,7 @@ class TestIntegratorWHFast512(unittest.TestCase):
|
|
|
83
101
|
|
|
84
102
|
|
|
85
103
|
def test_whfast512_fewer_than_8_particles(self):
|
|
86
|
-
if not
|
|
104
|
+
if not self.avx512_available(): return
|
|
87
105
|
sim = rebound.Simulation()
|
|
88
106
|
sim.add("outer solar system")
|
|
89
107
|
sim.integrator = "whfast512"
|
|
@@ -102,7 +120,7 @@ class TestIntegratorWHFast512(unittest.TestCase):
|
|
|
102
120
|
self.assertLess(math.fabs((e0-e1)/e0),1e-11)
|
|
103
121
|
|
|
104
122
|
def test_whfast512_independent_kepler_solvers(self):
|
|
105
|
-
if not
|
|
123
|
+
if not self.avx512_available(): return
|
|
106
124
|
def getSim(innera):
|
|
107
125
|
sim = rebound.Simulation()
|
|
108
126
|
sim.add(m=1)
|
|
@@ -127,7 +145,7 @@ class TestIntegratorWHFast512(unittest.TestCase):
|
|
|
127
145
|
|
|
128
146
|
|
|
129
147
|
def test_whfast512_high_e_kepler_solver(self):
|
|
130
|
-
if not
|
|
148
|
+
if not self.avx512_available(): return
|
|
131
149
|
def getSim(e, integrator, f):
|
|
132
150
|
sim = rebound.Simulation()
|
|
133
151
|
sim.add(m=1)
|
|
@@ -147,7 +165,7 @@ class TestIntegratorWHFast512(unittest.TestCase):
|
|
|
147
165
|
self.assertAlmostEqual(sim.particles[1].x, sim512.particles[1].x, 15)
|
|
148
166
|
|
|
149
167
|
def test_whfast512_Nsystems_2(self):
|
|
150
|
-
if not
|
|
168
|
+
if not self.avx512_available(): return
|
|
151
169
|
for Nplanets in [1,2,3,4]:
|
|
152
170
|
def getSim(Nplanets):
|
|
153
171
|
sim = rebound.Simulation()
|
|
@@ -186,7 +204,7 @@ class TestIntegratorWHFast512(unittest.TestCase):
|
|
|
186
204
|
self.assertEqual(sim.particles[1+i].vx, sim2.particles[2+Nplanets+i].vx)
|
|
187
205
|
|
|
188
206
|
def test_whfast512_Nsystems_4(self):
|
|
189
|
-
if not
|
|
207
|
+
if not self.avx512_available(): return
|
|
190
208
|
for Nplanets in [1,2]:
|
|
191
209
|
def getSim(Nplanets):
|
|
192
210
|
sim = rebound.Simulation()
|
|
@@ -228,7 +246,7 @@ class TestIntegratorWHFast512(unittest.TestCase):
|
|
|
228
246
|
self.assertEqual(sim.particles[1+i].vx, sim2.particles[4+3*Nplanets+i].vx)
|
|
229
247
|
|
|
230
248
|
def test_whfast512_com(self):
|
|
231
|
-
if not
|
|
249
|
+
if not self.avx512_available(): return
|
|
232
250
|
sim = rebound.Simulation()
|
|
233
251
|
sim.add("solar system")
|
|
234
252
|
for p in sim.particles:
|
|
@@ -249,7 +267,7 @@ class TestIntegratorWHFast512(unittest.TestCase):
|
|
|
249
267
|
|
|
250
268
|
|
|
251
269
|
def test_whfast512_restart(self):
|
|
252
|
-
if not
|
|
270
|
+
if not self.avx512_available(): return
|
|
253
271
|
sim = rebound.Simulation()
|
|
254
272
|
sim.add("solar system")
|
|
255
273
|
sim.integrator = "whfast512"
|
|
@@ -272,7 +290,7 @@ class TestIntegratorWHFast512(unittest.TestCase):
|
|
|
272
290
|
self.assertEqual(sim.particles[i].vx, sim2.particles[i].vx)
|
|
273
291
|
|
|
274
292
|
def test_whfast512_exit_min_distance(self):
|
|
275
|
-
if not
|
|
293
|
+
if not self.avx512_available(): return
|
|
276
294
|
sim = rebound.Simulation()
|
|
277
295
|
sim.add(m=1)
|
|
278
296
|
sim.add(m=1e-8,a=1)
|
|
@@ -287,7 +305,7 @@ class TestIntegratorWHFast512(unittest.TestCase):
|
|
|
287
305
|
self.assertAlmostEqual(sim.t,11.456, 2)
|
|
288
306
|
|
|
289
307
|
def test_whfast512_exit_min_distance_star(self):
|
|
290
|
-
if not
|
|
308
|
+
if not self.avx512_available(): return
|
|
291
309
|
sim = rebound.Simulation()
|
|
292
310
|
sim.add(m=1)
|
|
293
311
|
sim.add(m=1e-8,a=1, e=0.9, f=math.pi)
|
|
@@ -301,7 +319,7 @@ class TestIntegratorWHFast512(unittest.TestCase):
|
|
|
301
319
|
self.assertAlmostEqual(sim.t,2.99322, 2)
|
|
302
320
|
|
|
303
321
|
def test_whfast512_exit_max_distance(self):
|
|
304
|
-
if not
|
|
322
|
+
if not self.avx512_available(): return
|
|
305
323
|
sim = rebound.Simulation()
|
|
306
324
|
sim.add(m=1)
|
|
307
325
|
sim.add(m=1e-8,a=1, e=0.9, f=0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rebound
|
|
3
|
-
Version: 5.2.
|
|
3
|
+
Version: 5.2.2
|
|
4
4
|
Summary: An open-source multi-purpose N-body code
|
|
5
5
|
Author-email: Hanno Rein <hanno@hanno-rein.de>
|
|
6
6
|
License-Expression: GPL-3.0-only
|
|
@@ -17,7 +17,7 @@ Description-Content-Type: text/markdown
|
|
|
17
17
|
License-File: LICENSE
|
|
18
18
|
Dynamic: license-file
|
|
19
19
|
|
|
20
|
-
[](https://rebound.hanno-rein.de)
|
|
21
21
|
[](https://badge.fury.io/py/rebound)
|
|
22
22
|
[](https://github.com/hannorein/rebound/blob/main/LICENSE)
|
|
23
23
|
[](https://rebound.hanno-rein.de/)
|
|
@@ -21,6 +21,13 @@ def is_x86_64():
|
|
|
21
21
|
if sys.platform == "win32":
|
|
22
22
|
if not shutil.which("clang-cl"):
|
|
23
23
|
return False
|
|
24
|
+
if sys.platform == "linux":
|
|
25
|
+
import platform
|
|
26
|
+
arch = platform.machine().lower()
|
|
27
|
+
if not ("x86" in arch or "amd64" in arch):
|
|
28
|
+
return False
|
|
29
|
+
if "arm" in arch or "aarch" in arch:
|
|
30
|
+
return False
|
|
24
31
|
return struct.calcsize("P")*8 == 64
|
|
25
32
|
|
|
26
33
|
##### Git hash
|
|
@@ -28,7 +35,7 @@ try:
|
|
|
28
35
|
ghash = subprocess.check_output(["git", "rev-parse", "HEAD"]).decode("ascii").strip()
|
|
29
36
|
ghash_arg = f"-DGITHASH={ghash}"
|
|
30
37
|
except Exception:
|
|
31
|
-
ghash_arg = "-DGITHASH=
|
|
38
|
+
ghash_arg = "-DGITHASH=b06e3fcd9e50e2d9674f6f859ecd311091dd48b0" #GITHASHAUTOUPDATE
|
|
32
39
|
|
|
33
40
|
##### Link args
|
|
34
41
|
extra_link_args = []
|
|
@@ -176,7 +176,9 @@ struct reb_binarydata_field_descriptor reb_binarydata_field_descriptor_for_name(
|
|
|
176
176
|
struct reb_binarydata_field_descriptor fd_integrator = *fd;
|
|
177
177
|
if (r && r->integrator.state){
|
|
178
178
|
fd_integrator.offset += (size_t)r->integrator.state;
|
|
179
|
-
fd_integrator.offset_N
|
|
179
|
+
if (fd_integrator.offset_N != SIZE_MAX){
|
|
180
|
+
fd_integrator.offset_N += (size_t)r->integrator.state;
|
|
181
|
+
}
|
|
180
182
|
}
|
|
181
183
|
strcpy(fd_integrator.name, name);
|
|
182
184
|
return fd_integrator;
|
|
@@ -188,7 +190,9 @@ struct reb_binarydata_field_descriptor reb_binarydata_field_descriptor_for_name(
|
|
|
188
190
|
struct reb_binarydata_field_descriptor fd_simulation = *fd;
|
|
189
191
|
if (r){
|
|
190
192
|
fd_simulation.offset += (size_t)r;
|
|
191
|
-
fd_simulation.offset_N
|
|
193
|
+
if (fd_simulation.offset_N != SIZE_MAX){
|
|
194
|
+
fd_simulation.offset_N += (size_t)r;
|
|
195
|
+
}
|
|
192
196
|
}
|
|
193
197
|
return fd_simulation;
|
|
194
198
|
}
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
const uint32_t reb_string_size_max = REB_STRING_SIZE_MAX; // defined in rebound.h
|
|
41
41
|
const size_t reb_messages_max_N = 10;
|
|
42
42
|
const char* reb_build_str = __DATE__ " " __TIME__; // Date and time build string.
|
|
43
|
-
const char* reb_version_str = "5.2.
|
|
43
|
+
const char* reb_version_str = "5.2.2"; // **VERSIONLINE** This line gets updated automatically. Do not edit manually.
|
|
44
44
|
const char* reb_githash_str = STRINGIFY(GITHASH); // This line gets updated automatically. Do not edit manually.
|
|
45
45
|
|
|
46
46
|
// NULL terminated list of custom registered integrators.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|