Hi Elizabeth,

You can do:

del ng[fieldname]


On Dec 12, 2011 5:45 AM, "Elizabeth Tasker" <tasker@astro1.sci.hokudai.ac.jp> wrote:

Is there a way of deleting a single derived field from all grids?

I seem to be having a problem with my derived field not being
re-calculated for every element in a loop (it needs to be). Therefore,
if I run the complete loop, I get an incorrect result for some of the
elements which are totally fine if I tell the code to just calculate
that element in a single sweep.

I've tried deleting the individual elements that use that variable,
but it doesn't seem to be enough, e.g.

ng, nc = kd.locate_neighbors_from_position(nposn)
del ng

yt-users mailing list