[Yt-svn] yt-commit r928 - in trunk/yt: lagos/hop raven
sskory at wrangler.dreamhost.com
sskory at wrangler.dreamhost.com
Wed Nov 12 17:35:03 PST 2008
Author: sskory
Date: Wed Nov 12 17:35:02 2008
New Revision: 928
URL: http://yt.spacepope.org/changeset/928
Log:
As per Matt's berating, I have added my name to the authors.
Modified:
trunk/yt/lagos/hop/NewHopOutput.py
trunk/yt/raven/Callbacks.py
Modified: trunk/yt/lagos/hop/NewHopOutput.py
==============================================================================
--- trunk/yt/lagos/hop/NewHopOutput.py (original)
+++ trunk/yt/lagos/hop/NewHopOutput.py Wed Nov 12 17:35:02 2008
@@ -3,6 +3,10 @@
Author: Matthew Turk <matthewturk at gmail.com>
Affiliation: KIPAC/SLAC/Stanford
+
+Author: Stephen Skory <sskory at physics.ucsd.edu>
+Affiliation: UC San Diego
+
Homepage: http://yt.enzotools.org/
License:
Copyright (C) 2008 Matthew Turk. All Rights Reserved.
@@ -70,6 +74,10 @@
self._base_indices = na.arange(tot_part)[ii]
def __enlarge_data(self):
+ """
+ Take the data fields and reflect them around the sides of the
+ box, using periodicity.
+ """
sizetemp = self.particle_fields["particle_position_x"].size
self.tempx = [i for i in range(3*sizetemp)]
self.tempy = [i for i in range(3*sizetemp)]
@@ -98,6 +106,11 @@
self.tempm[3*sizetemp -1 - part] = i
def __slice_data(self):
+ """
+ Cut up the particle data into subboxes, depending on *cuts* and the over-sampling
+ parameter *padding*. This also enlarges the box such that the particles run
+ from 0 to 1, which may not be neccesary.
+ """
cuts = 3
padding = 0.2
self.temp2x = {}
@@ -143,6 +156,9 @@
self.tracking2[((i*cuts) + j)*cuts + k] = t_t
def __reduce_data(self):
+ """
+ Take the boxes after HOP has handled them and make them small, to their true size.
+ """
cuts = 3
padding = 0.2
# loop over the sub-boxes
@@ -162,6 +178,9 @@
self.temp2z[((i*cuts) + j)*cuts + k] = self.temp2z[((i*cuts) + j)*cuts + k]*(zright-zleft)+zleft
def __run_hops(self):
+ """
+ Run HOP on the different boxes.
+ """
cuts = 3
padding = 0.2
nParts = self.particle_fields["particle_position_x"].size
Modified: trunk/yt/raven/Callbacks.py
==============================================================================
--- trunk/yt/raven/Callbacks.py (original)
+++ trunk/yt/raven/Callbacks.py Wed Nov 12 17:35:02 2008
@@ -5,6 +5,8 @@
Affiliation: KIPAC/SLAC/Stanford
Author: J. S. Oishi <jsoishi at astro.berkeley.edu>
Affiliation: UC Berkeley
+Author: Stephen Skory <sskory at physics.ucsd.edu>
+Affiliation: UC San Diego
Homepage: http://yt.enzotools.org/
License:
Copyright (C) 2008 Matthew Turk, JS Oishi. All Rights Reserved.
More information about the yt-svn
mailing list