On Nov 27, 2012, at 3:41 PM, "Kirk, Benjamin (JSC-EG311)" <benjamin.kir...@nasa.gov> wrote:
> On Nov 27, 2012, at 3:35 PM, Derek Gaston <fried...@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 ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: DESIGN Expert tips on starting your parallel project right. http://goparallel.sourceforge.net _______________________________________________ Libmesh-devel mailing list Libmesh-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-devel