Hello Britton,<br><br>Running the script you posted, I found that no cells in a smooth_covering_grid have a dPhidx value of zero, and that 4501200 cells in a covering_grid have dPhidx of zero.<br><br>Nathan<br><br><div class="gmail_quote">
On Sun, Jul 1, 2012 at 11:59 AM, Britton Smith <span dir="ltr"><<a href="mailto:brittonsmith@gmail.com" target="_blank">brittonsmith@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 Nathan,<br><br>This could be an issue with how you set up your covering_grid or smoothed_covering_grid.  Can you try out this script?<br><a href="http://paste.yt-project.org/show/2512/" target="_blank">http://paste.yt-project.org/show/2512/</a><br>

This depends on the script that you included in your post, so make sure it's in the same directory.  This will add up the number of cells in your grid object for which the dPhidx field is zero.<br><br>Britton<br><br>
<div class="gmail_quote"><div><div class="h5">
On Fri, Jun 29, 2012 at 3:19 PM, Nathan Butcher <span dir="ltr"><<a href="mailto:butchernate@gmail.com" target="_blank">butchernate@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">
Hello,<br><br>I am having trouble using a derived field with a CoveringGrid. I am making fields for dPhi/dx, dPhi/dy, dPhi/dz using the PotentialField from ENZO. The derivative fields do not get passed into the CoveringGrid and get recalculated. This leads to the derivative being zero in areas that were originally in coarse cells. <br>


<br>Density and DivV fields were passed to the CoveringGrid properly. As a test I defined a field that was Density^2 and that was passed to the CoveringGrid properly, so I think it is a problem specific to derived fields based on the ENZO-specific PotentialField. I have included the source for my derivative functions.<br>


<br>Thank you,<br>Nathan Butcher<br>
<br></div></div>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">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></blockquote></div><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></blockquote></div><br>