> Is there a way (albeit complex) to determine the parent of child cell? It's > easy to get the child of a parent but visa-versa seems less > straightforward.
I think this is something we should eventually implement as it is one of the most often requested features. Maybe this could be achieved during the code jam at the deal.II workshop... As for the general approach: can you modify your algorithm so that instead of having a loop over all active cells and seeking their parents, you loop over *all* cells (active or not) and if a given cell has children then do whatever needs to be done on the the current cell (i.e. the parent of the child you have just discovered)? You'd do the same work as in what you wanted to do, just the order of active cells is different. Best W. ------------------------------------------------------------------------- Wolfgang Bangerth email: [email protected] www: http://www.math.tamu.edu/~bangerth/ _______________________________________________ dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
