Commits

Christopher Moody  committed 7963775

the total metal density should be a sum of SNIa and SNII

  • Participants
  • Parent commits 533c263

Comments (0)

Files changed (1)

File yt/frontends/art/fields.py

 
 def _metal_density(field, data):
     tr  = data["MetalDensitySNIa"]
-    tr = data["MetalDensitySNII"]
+    tr += data["MetalDensitySNII"]
     return tr
 add_field("Metal_Density", function=_metal_density, units = r"\mathrm{K}",take_log=True)
 ARTFieldInfo["Metal_Density"]._units = r""