Thanks!  I just verified this, and it looks like it's exactly what I need.

Derek


On Tue, Nov 27, 2012 at 2:49 PM, Kirk, Benjamin (JSC-EG311) <benjamin.kirk-1@nasa.gov> wrote:
On Nov 27, 2012, at 3:41 PM, "Kirk, Benjamin (JSC-EG311)" <benjamin.kirk-1@nasa.gov> wrote:

> On Nov 27, 2012, at 3:35 PM, Derek Gaston <friedmud@gmail.com> wrote:
>
>> Guys,
>>
>> I need to iterate over any newly created elements after mesh adaptivity.  Is there a flag or something that I can look at for that?
>>
>> I have a way to do it now where I keep track of stuff externally, but I was hoping that there might be a better way….
>
> c.f. line 480 of mesh/mesh_refeinement.C
>
> Now I don't think there is a specialized iterator, but this how we do it…
>
> -Ben

To be clear, we set this when refining the element, use it when projecting the solution, and I *think* it persists until the next time refine_and_coarsen elements is called.

It is set on the new children in elem_refinement.C -  Elem::refine

Looks like when we enter the function

the parent is set to Elem::REFINE
children are created with Elem::JUST_REFINED
parent is reset to Elem::INACTIVE

-Ben