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/">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">
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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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>_______________________________________________<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>