[yt-svn] commit/yt: bwoshea: changed matter_overdensity to use rho_b + rho_dm, rather than just rho_b.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Fri Aug 22 03:56:06 PDT 2014


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/a0e5f14b3a77/
Changeset:   a0e5f14b3a77
Branch:      yt
User:        bwoshea
Date:        2014-08-21 19:40:29
Summary:     changed matter_overdensity to use rho_b + rho_dm, rather than just rho_b.
Affected #:  1 file

diff -r c0b0a189ee4735df3766eb76048180063142eb90 -r a0e5f14b3a77e1e72e8133b491b71583b59959f1 yt/fields/cosmology_fields.py
--- a/yt/fields/cosmology_fields.py
+++ b/yt/fields/cosmology_fields.py
@@ -99,7 +99,7 @@
         co = data.ds.cosmology
         # critical_density(z) ~ omega_lambda + omega_matter * (1 + z)^3
         # mean density(z) ~ omega_matter * (1 + z)^3
-        return data[ftype, "density"] / data.ds.omega_matter / \
+        return data[ftype, "matter_density"] / data.ds.omega_matter / \
           co.critical_density(0.0) / \
           (1.0 + data.ds.current_redshift)**3

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list