[Yt-svn] yt-commit r1063 - trunk/yt/lagos/hop

sskory at wrangler.dreamhost.com sskory at wrangler.dreamhost.com
Wed Dec 31 18:49:03 PST 2008


Author: sskory
Date: Wed Dec 31 18:49:02 2008
New Revision: 1063
URL: http://yt.spacepope.org/changeset/1063

Log:
Adding the overdensity threshold adjustment paramater for parallel hop.

Modified:
   trunk/yt/lagos/hop/SS_HopOutput.py

Modified: trunk/yt/lagos/hop/SS_HopOutput.py
==============================================================================
--- trunk/yt/lagos/hop/SS_HopOutput.py	(original)
+++ trunk/yt/lagos/hop/SS_HopOutput.py	Wed Dec 31 18:49:02 2008
@@ -268,7 +268,8 @@
                                   ["particle_position_%s" % ax for ax in 'xyz'])
         # MJT: This is the point where HOP is run, and we have halos for every
         # single sub-region
-        super(HaloFinder, self).__init__(self.data_source, threshold, dm_only)
+        sub_mass = self.data_source["ParticleMassMsun"].sum()
+        super(HaloFinder, self).__init__(self.data_source, threshold*total_mass/sub_mass, dm_only)
         self._parse_hoplist()
         self._join_hoplists()
 



More information about the yt-svn mailing list