[Yt-svn] yt-commit r1053 - trunk/yt/lagos/hop
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Sat Dec 27 10:06:16 PST 2008
Author: mturk
Date: Sat Dec 27 10:06:16 2008
New Revision: 1053
URL: http://yt.spacepope.org/changeset/1053
Log:
Added pre-caching of particle attributes, to avoid having to grab them when
writing out the output (which would be done in serial!)
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 Sat Dec 27 10:06:16 2008
@@ -263,6 +263,9 @@
self.bounds = (LE, RE)
# reflect particles around the periodic boundary
self._reposition_particles((LE, RE))
+ self.data_source.get_data(["ParticleMassMsun"] +
+ ["particle_velocity_%s" % ax for ax in 'xyz'] +
+ ["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)
More information about the yt-svn
mailing list