aboutsummaryrefslogtreecommitdiffstats
path: root/Commons
diff options
context:
space:
mode:
authorVolker Hoffmann <volker@cheleb.net>2014-07-16 08:54:26 +0200
committerVolker Hoffmann <volker@cheleb.net>2014-07-16 08:54:26 +0200
commitaddb872bf5a81b1146d9b8f2651ef2290791f531 (patch)
tree1eb3ba7e80a3e32fc8694bb58e09d16d307b6222 /Commons
parentcd29ef971b7a2ccb8dcd0585fe4f6492d6157e10 (diff)
use quad precision for Kepler elements
Diffstat (limited to 'Commons')
-rw-r--r--Commons/Structs.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Commons/Structs.py b/Commons/Structs.py
index 2b33c56..5cae38b 100644
--- a/Commons/Structs.py
+++ b/Commons/Structs.py
@@ -35,8 +35,10 @@ class Particle():
def cart2kep(self):
self.a, self.ecc, self.inc, self.Omega, self.omega, self.M0 = \
- cart2kep(np.array([self.x, self.y, self.z]), \
- np.array([self.vx, self.vy, self.vz]), self.m, \
+ cart2kep(np.array([self.x, self.y, self.z], dtype=np.float128), \
+ np.array([self.vx, self.vy, self.vz], \
+ dtype=np.float128), \
+ self.m, \
central_mass=1.0)
def kep2cart(self):
x, v = \