[Yt-svn] yt-commit r1284 - trunk/yt/lagos

sskory at wrangler.dreamhost.com sskory at wrangler.dreamhost.com
Mon Apr 27 16:27:46 PDT 2009


Author: sskory
Date: Mon Apr 27 16:27:45 2009
New Revision: 1284
URL: http://yt.spacepope.org/changeset/1284

Log:
threshold_adjustment was being applied to the coordinates for the maximum density particle, which became a stronger effect with more threads. This should fix that.

Modified:
   trunk/yt/lagos/HaloFinding.py

Modified: trunk/yt/lagos/HaloFinding.py
==============================================================================
--- trunk/yt/lagos/HaloFinding.py	(original)
+++ trunk/yt/lagos/HaloFinding.py	Mon Apr 27 16:27:45 2009
@@ -337,7 +337,8 @@
                 # self.hop_list
                 # We need to mock up the HOPHaloList thingie, so we need to set:
                 #     self._max_dens
-                max_dens[hi] = self._max_dens[halo.id] / threshold_adjustment
+                max_dens_temp = list(self._max_dens[halo.id])[0] / threshold_adjustment
+                max_dens[hi] = [max_dens_temp] + list(self._max_dens[halo.id])[1:4]
                 groups.append(self._halo_class(self, hi))
                 groups[-1].indices = halo.indices
                 self._claim_object(groups[-1])



More information about the yt-svn mailing list