<div dir="ltr">Thanks for the hint, this modification seems to fix things: <a href="http://paste.yt-project.org/show/5070/">http://paste.yt-project.org/show/5070/</a><div><br></div><div>I'll be PRing that shortly after testing it out today.</div>

<div><br></div><div>Back to my original question - do you you know where in the code the deposited fields are set up?  I'd like to look there to see how I should set up deposited particle velocity fields.</div></div>
<div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Aug 27, 2014 at 8:06 AM, 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 Nathan,<br>
<br>
Hmm, this looks to me like it could be fixed by smoothing onto the<br>
final field, rather than an intermediate step.  Does that match your<br>
expectations?  If so, in the past we've had ways to declaring that<br>
some fields are derived at the level of the final result.  Perhaps<br>
anything in the "deposit" namespace could be special-cased that way.<br>
<div><div class="h5"><br>
On Tue, Aug 26, 2014 at 7:16 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com">nathan12343@gmail.com</a>> wrote:<br>
> Backing up, there seems to be issues with creating smoothed covering grids<br>
> of any deposited particle field.<br>
><br>
> Take for example the following script:<br>
> <a href="http://paste.yt-project.org/show/5068/" target="_blank">http://paste.yt-project.org/show/5068/</a><br>
><br>
> This produces the following traceback:<br>
> <a href="http://paste.yt-project.org/show/5069/" target="_blank">http://paste.yt-project.org/show/5069/</a><br>
><br>
> To fix the error, I tried making the following modification to yt:<br>
> <a href="https://bitbucket.org/ngoldbaum/yt/commits/ccc8424f7310070db04f4416b21262504f4a36d3" target="_blank">https://bitbucket.org/ngoldbaum/yt/commits/ccc8424f7310070db04f4416b21262504f4a36d3</a><br>
><br>
> Unfortunately this doesn't help because the smoothed covering grid's<br>
> _fill_fields function never gets called, which means _initialize_level_state<br>
> never gets called either.  I'm poking around in the smoothed covering grid<br>
> to try to fix this but any help from someone who's more familiar with this<br>
> part of the code would be very much appreciated.<br>
><br>
> -Nathan<br>
><br>
><br>
> On Tue, Aug 26, 2014 at 1:33 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com">nathan12343@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hi all,<br>
>><br>
>> I'd like to setup deposition fields for particle velocities.  This means<br>
>> doing a mass-weighted nearest neighbor or cloud-in-cell deposition of the<br>
>> particle velocities in a grid dataset.  I'm using this to analyze the<br>
>> stellar velocity dispersions in a simulation, so it's much more convenient<br>
>> to have the particle velocities interpolated onto a grid to calculate the<br>
>> local velocity dispersion using a 3D convolution.<br>
>><br>
>> Does anyone have an example of setting up a particle deposition field?  If<br>
>> not, where should I look in the source?<br>
>><br>
>> Thanks for your help!<br>
>><br>
>> -Nathan<br>
><br>
><br>
><br>
</div></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></div>