Thanks! I just verified this, and it looks like it's exactly what I need.
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.On Nov 27, 2012, at 3:41 PM, "Kirk, Benjamin (JSC-EG311)" <email@example.com> wrote:
> On Nov 27, 2012, at 3:35 PM, Derek Gaston <firstname.lastname@example.org> wrote:
>> 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…
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