summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hoffmann <volker@cheleb.net>2013-05-14 09:07:30 +0200
committerVolker Hoffmann <volker@cheleb.net>2013-05-14 09:07:30 +0200
commit83f1097d6cf633ed2f378dc3879ebbac7de7c19e (patch)
tree0cd353b33a5c573a1deaf85d262f1d3adc204c22
parent7a4d8710934d8a788b8e7b2197914a5235b1c253 (diff)
fixed wrong integration in r (already did the 2*pi*r*theta part!)
-rw-r--r--DiskRTZ.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/DiskRTZ.py b/DiskRTZ.py
index 1f2930e..e31aed4 100644
--- a/DiskRTZ.py
+++ b/DiskRTZ.py
@@ -233,7 +233,7 @@ class DiskReduce(DiskReduceBase):
def compute_mass_r(self):
"""Compute Mass in Radial Bins."""
- self.mass_r = self.rho_r * self.r["r"] * 2. * pi * self.dl["dr"]
+ self.mass_r = self.rho_r * self.dl["dr"]
def reduce_all(self):
self.compute_mdotr_rz()