<div dir="ltr">The FFT script I posted yesterday does it<div><br></div><div><a href="http://paste.yt-project.org/show/4528/">http://paste.yt-project.org/show/4528/</a><br></div><div><br></div><div>I do:</div><div><br></div>
<div><div>cube = pf.covering_grid(max_level, left_edge=pf.domain_left_edge, </div><div>                        dims=pf.domain_dimensions,</div><div>                        fields=[irho, iu, iv, iw])</div></div><div><br></div>
<div>then if I don't hack:</div><div><br></div><div><div>pf.periodicity = (True, True, True)</div></div><div><br></div><div>before doing:</div><div><br></div><div><div>rho = cube[irho].d</div></div><div><br></div><div>
I get the error.  I imagine any dataset would show this error if you hack one of the periodicity components to False before accessing the cube.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 18, 2014 at 12:17 PM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mike,<br>
<div class=""><br>
On Fri, Apr 18, 2014 at 12:02 PM, Michael Zingale<br>
<<a href="mailto:michael.zingale@stonybrook.edu">michael.zingale@stonybrook.edu</a>> wrote:<br>
> If I create a covering_grid for a full domain that is not triply-periodic,<br>
> the code will abort when I try to access the data in the covering grid with<br>
> an error generated by selection_routines.pyx that is looking to make sure<br>
> that the boundary conditions are supported.  I understand that this support<br>
> is not yet in place, but I don't think that it should be an issue for a<br>
> covering_grid.<br>
<br>
</div>I agree, it should not.  Can you tell me how you're generating the<br>
covering grid?  If it is set with the origin at domain_left_edge and<br>
dimensions equal to the dimensions of the domain (at whatever<br>
refinement level you've specified) this should not error.<br>
<div class=""><br>
><br>
> The covering grid procedure itself should not ever need boundary conditions,<br>
> if I understand what it intends to do.  If you are just sampling the coarse<br>
> data (or averaging the overlying fine data) into your zone, there is no need<br>
> to do any interpolation that would require BCs.  For the<br>
> SmoothedCoveringGrid stuff, I understand that BCs should come into play.  Am<br>
> I missing something? or should this check on the BCs be considered a bug in<br>
> this case?<br>
<br>
</div>This sounds like a bug to me!<br>
<div class=""><br>
><br>
> Mike<br>
><br>
> --<br>
> Michael Zingale<br>
> Associate Professor<br>
><br>
> Dept. of Physics & Astronomy • Stony Brook University • Stony Brook, NY<br>
> 11794-3800<br>
> phone:  <a href="tel:631-632-8225" value="+16316328225">631-632-8225</a><br>
> e-mail: <a href="mailto:Michael.Zingale@stonybrook.edu">Michael.Zingale@stonybrook.edu</a><br>
> web: <a href="http://www.astro.sunysb.edu/mzingale" target="_blank">http://www.astro.sunysb.edu/mzingale</a><br>
><br>
</div>> _______________________________________________<br>
> yt-dev mailing list<br>
> <a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
><br>
_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Michael Zingale</div><div>Associate Professor</div><div><br></div><div>Dept. of Physics & Astronomy • Stony Brook University • Stony Brook, NY 11794-3800</div>
<div><i>phone</i>:  631-632-8225</div><div><i>e-mail</i>: <a href="mailto:Michael.Zingale@stonybrook.edu" target="_blank">Michael.Zingale@stonybrook.edu</a></div><div><i>web</i>: <a href="http://www.astro.sunysb.edu/mzingale" target="_blank">http://www.astro.sunysb.edu/mzingale</a></div>

</div>