[Yt-svn] yt-commit r1064 - trunk/yt/lagos/hop
sskory at wrangler.dreamhost.com
sskory at wrangler.dreamhost.com
Thu Jan 1 14:45:19 PST 2009
Author: sskory
Date: Thu Jan 1 14:45:18 2009
New Revision: 1064
URL: http://yt.spacepope.org/changeset/1064
Log:
added padding as an input to the parallel halo finder.
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 Thu Jan 1 14:45:18 2009
@@ -245,7 +245,7 @@
return self.indices.size
class HaloFinder(HopList, ParallelAnalysisInterface):
- def __init__(self, pf, threshold=160.0, dm_only=True):
+ def __init__(self, pf, threshold=160.0, dm_only=True, padding=0.2):
self.pf = pf
self.hierarchy = pf.h
self.center = (pf["DomainRightEdge"] + pf["DomainLeftEdge"])/2.0
@@ -258,7 +258,7 @@
# are all on different processors, we should instead construct an
# object representing the entire domain and sum it "lazily" with
# Derived Quantities.
- self.padding = 0.2 #* pf["unitary"] # This should be clevererer
+ self.padding = padding #* pf["unitary"] # This should be clevererer
padded, LE, RE, self.data_source = self._partition_hierarchy_3d(padding=self.padding)
self.bounds = (LE, RE)
# reflect particles around the periodic boundary
More information about the yt-svn
mailing list