From 425432689bbc22967ddee04188d476498585332c Mon Sep 17 00:00:00 2001 From: wolf Date: Fri, 5 Mar 1999 13:37:05 +0000 Subject: [PATCH] Undo the patch of yesterday since it didn't work the way we wanted, but makes some programs abort. Wait for a patch to the prepare_* functions which are the culprit. git-svn-id: https://svn.dealii.org/trunk@954 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/grid/tria.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/deal.II/deal.II/source/grid/tria.cc b/deal.II/deal.II/source/grid/tria.cc index dec83179bc..d1de28c14f 100644 --- a/deal.II/deal.II/source/grid/tria.cc +++ b/deal.II/deal.II/source/grid/tria.cc @@ -3922,9 +3922,6 @@ Triangulation::refine_and_coarsen_fixed_fraction (const Vector &cri template void Triangulation::execute_coarsening_and_refinement () { - prepare_refinement (); - prepare_coarsening (); - execute_coarsening(); execute_refinement(); }; @@ -3937,6 +3934,7 @@ void Triangulation::execute_coarsening_and_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 @@ -4157,6 +4155,7 @@ void Triangulation<1>::execute_refinement () { 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 @@ -4764,6 +4763,9 @@ template <> 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 @@ -5959,6 +5961,7 @@ void Triangulation<3>::execute_refinement () { template void Triangulation::execute_coarsening () { + prepare_coarsening (); // loop over all cells. Flag all cells of // which all children are flagged for // coarsening and delete the childrens' -- 2.39.5