Hi all,<div><br></div><div>This bug that Matt squashed should fix some problems with the volume rendering for non-Enzo codes such as FLASH, Orion, and Castro. It had to do with the AMR kd-tree build process and grid id offsets.  Anyways, if you had been having trouble with volume rendering, you may have better luck now.  </div>

<div><br></div><div>Good catch Matt!</div><div><br></div><div>Sam</div><div><br><br><div class="gmail_quote">On Mon, Jun 20, 2011 at 6:14 PM, Bitbucket <span dir="ltr"><<a href="mailto:commits-noreply@bitbucket.org">commits-noreply@bitbucket.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">1 new changeset in yt:<br>
<br>
<a href="http://bitbucket.org/yt_analysis/yt/changeset/e58ca7f8823a/" target="_blank">http://bitbucket.org/yt_analysis/yt/changeset/e58ca7f8823a/</a><br>
changeset:   e58ca7f8823a<br>
branch:      yt<br>
user:        MatthewTurk<br>
date:        2011-06-21 02:14:05<br>
summary:     Fix issue with id_offset in amr_kdtree.  This fixes issues with non-Enzo codes<br>
finding incorrect data sizes.<br>
affected #:  1 file (79 bytes)<br>
<br>
--- a/yt/utilities/amr_kdtree/amr_kdtree.py     Mon Jun 20 16:29:49 2011 -0400<br>
+++ b/yt/utilities/amr_kdtree/amr_kdtree.py     Mon Jun 20 17:14:05 2011 -0700<br>
@@ -259,6 +259,7 @@<br>
         self.current_split_dim = 0<br>
<br>
         <a href="http://self.pf" target="_blank">self.pf</a> = pf<br>
+        self._id_offset = pf.h.grids[0]._id_offset<br>
         if nprocs > len(pf.h.grids):<br>
             print('Parallel rendering requires that the number of \n \<br>
             grids in the dataset is greater or equal to the number of \n \<br>
@@ -568,7 +569,7 @@<br>
         None<br>
<br>
         """<br>
-        thisnode.grid = self.pf.hierarchy.grids[thisnode.grid - 1]<br>
+        thisnode.grid = self.pf.hierarchy.grids[thisnode.grid - self._id_offset]<br>
<br>
         dds = thisnode.grid.dds<br>
         gle = thisnode.grid.LeftEdge<br>
@@ -844,7 +845,7 @@<br>
                     # Check if we have children and have not exceeded l_max<br>
                     if len(thisgrid.Children) > 0 and thisgrid.Level < self.l_max:<br>
                         # Get the children that are actually in the current volume<br>
-                        children = [<a href="http://child.id" target="_blank">child.id</a> - 1 for child in thisgrid.Children<br>
+                        children = [<a href="http://child.id" target="_blank">child.id</a> - self._id_offset for child in thisgrid.Children<br>
                                     if na.all(child.LeftEdge < current_node.r_corner) &<br>
                                     na.all(child.RightEdge > current_node.l_corner)]<br>
<br>
Repository URL: <a href="https://bitbucket.org/yt_analysis/yt/" target="_blank">https://bitbucket.org/yt_analysis/yt/</a><br>
<br>
--<br>
<br>
This is a commit notification from <a href="http://bitbucket.org" target="_blank">bitbucket.org</a>. You are receiving<br>
this because you have the service enabled, addressing the recipient of<br>
this email.<br>
_______________________________________________<br>
Yt-svn mailing list<br>
<a href="mailto:Yt-svn@lists.spacepope.org">Yt-svn@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-svn-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-svn-spacepope.org</a><br>
</blockquote></div><br></div>