Hi everyone,<br><br>I'm finally following up on this thread.  I just submitted a pull request for the docs that includes some documentation of how to create fields that use ghost zones.  Some of it was a little tricky to explain, so let me know if the wording can be improved.<br>
<br>Britton<br><br><div class="gmail_quote">On Wed, Jan 4, 2012 at 2:03 PM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com">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 Britton,<br>
<div class="im"><br>
On Wed, Jan 4, 2012 at 1:32 PM, Britton Smith <<a href="mailto:brittonsmith@gmail.com">brittonsmith@gmail.com</a>> wrote:<br>
> Hi Matt,<br>
><br>
> I'm not sure I understand the change that you're talking about, but it seems<br>
> that they were auto-detected in the past, since the example without them<br>
> there used to work.  I'm in favor of returning to that if possible.<br>
> Regardless, I think it would be worthwhile to add something to the derived<br>
> fields documentation discussing this.  I could add that if we wanted it, but<br>
> it will be good to have it reviewed, since I'm not very familiar with how it<br>
> works.<br>
<br>
</div>I think the best solution would be to have it simply auto-detect the<br>
fields necessary, rather than mandating they be specified (which may<br>
not always give the correct results.)  I'll implement this tomorrow<br>
morning.<br>
<br>
After some digging, it seems to me that this situation arose because<br>
we fixed a bug which had silently allowed this to occur, related to<br>
checking for field parameters in fields requiring ghost zones.<br>
<br>
-Matt<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> Britton<br>
><br>
><br>
> On Wed, Jan 4, 2012 at 1:26 PM, Matthew Turk <<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>> wrote:<br>
>><br>
>> Hi Britton,<br>
>><br>
>> It may not be documented, but I think we can actually auto-detect<br>
>> them; this would add on a list of lists of strings to the hierarchy,<br>
>> but I think that is manageable.  Would this be worthwhile?<br>
>><br>
>> -Matt<br>
>><br>
>> On Wed, Jan 4, 2012 at 1:24 PM, Britton Smith <<a href="mailto:brittonsmith@gmail.com">brittonsmith@gmail.com</a>><br>
>> wrote:<br>
>> > Hi Sam,<br>
>> ><br>
>> > That fixed it, thanks!  I actually encountered this problem while<br>
>> > working on<br>
>> > my own derived field that used ghost zones and was using<br>
>> > VorticitySquared as<br>
>> > my example for how to do it.  I think in the past it was not required to<br>
>> > list the fields with ValidateSpatial, which is why it was working as is<br>
>> > in<br>
>> > older versions.  I wasn't able to find documentation on how to make<br>
>> > fields<br>
>> > that use ghost_zones.  If it's in there and I just missed it, could<br>
>> > someone<br>
>> > point me toward it?  If not, I could add something to the Creating<br>
>> > Derived<br>
>> > Fields section.<br>
>> ><br>
>> > Britton<br>
>> ><br>
>> ><br>
>> > On Wed, Jan 4, 2012 at 11:46 AM, Sam Skillman <<a href="mailto:samskillman@gmail.com">samskillman@gmail.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> Hey Britton,<br>
>> >><br>
>> >> It looks like VorticitySquared wasn't specifying the necessary fields<br>
>> >> (x,y,z velocity) in the definition.  I will push a change momentarily<br>
>> >> after<br>
>> >> I look around at any other ghost zone requiring fields to make sure<br>
>> >> they<br>
>> >> work.  DivV, for example, does the right thing.<br>
>> >><br>
>> >> Sam<br>
>> >><br>
>> >><br>
>> >> On Wed, Jan 4, 2012 at 9:32 AM, Britton Smith <<a href="mailto:brittonsmith@gmail.com">brittonsmith@gmail.com</a>><br>
>> >> wrote:<br>
>> >>><br>
>> >>> Hi everyone,<br>
>> >>><br>
>> >>> I'm having a problem using fields that use ghost zones.  The following<br>
>> >>> simple script:<br>
>> >>> <a href="http://paste.yt-project.org/show/2010/" target="_blank">http://paste.yt-project.org/show/2010/</a><br>
>> >>><br>
>> >>> gives this error:<br>
>> >>> <a href="http://paste.yt-project.org/show/bOikDPScBBtDiUGvH11X/" target="_blank">http://paste.yt-project.org/show/bOikDPScBBtDiUGvH11X/</a><br>
>> >>><br>
>> >>> I am working from the tip, but I get the same behavior from yt/2.3.<br>
>> >>> In<br>
>> >>> yt/2.2, everything is working.  I am working now to narrow that range<br>
>> >>> down a<br>
>> >>> bit, but does anyone have an idea?<br>
>> >>><br>
>> >>> Britton<br>
>> >>><br>
>> >>> _______________________________________________<br>
>> >>> yt-users mailing list<br>
>> >>> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
>> >>> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
>> >>><br>
>> >><br>
>> >><br>
>> >> _______________________________________________<br>
>> >> yt-users mailing list<br>
>> >> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
>> >> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
>> >><br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > yt-users mailing list<br>
>> > <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
>> > <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
>> ><br>
>> _______________________________________________<br>
>> yt-users mailing list<br>
>> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
>> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</div></div></blockquote></div><br>