On 02/19/2018 05:37 AM, luca.heltai wrote:
After you have created your coarse mesh, you could 
GridTools::flatten_triangulation it. This will create a brand new coarse 
triangulation, containing only all your active cells.

Alternatively, between the call to GridRefinement::refine_...() and Triangulation::execute_coarsening_and_refinement(), you can go over all cells and call
  if (cell->level() == 1

This makes sure that once refined cells will never be coarsened again.


Wolfgang Bangerth          email:                 bange...@colostate.edu
                           www: http://www.math.colostate.edu/~bangerth/

The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
--- You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to