template <int dim>
void Triangulation<dim>::execute_coarsening_and_refinement () {
- prepare_refinement ();
- prepare_coarsening ();
-
execute_coarsening();
execute_refinement();
};
template <>
void Triangulation<1>::execute_refinement () {
const unsigned int dim = 2;
+ prepare_refinement ();
// check whether a new level is needed
// we have to check for this on the
template <>
void Triangulation<2>::execute_refinement () {
const unsigned int dim = 2;
+ prepare_refinement ();
// check whether a new level is needed
// we have to check for this on the
void Triangulation<3>::execute_refinement () {
const unsigned int dim = 3;
+ // do some grid smoothing
+ prepare_refinement ();
+
// check whether a new level is needed
// we have to check for this on the
// highest level only (on this, all
template <int dim>
void Triangulation<dim>::execute_coarsening () {
+ prepare_coarsening ();
// loop over all cells. Flag all cells of
// which all children are flagged for
// coarsening and delete the childrens'