From 20478abb355914e7b58f0269bf79c1f5bfe4a090 Mon Sep 17 00:00:00 2001 From: "daniel.arndt" Date: Tue, 24 Sep 2013 14:37:29 +0000 Subject: [PATCH] Fixed bug in add_periodicity. There were errors when the mesh is not immediately refined. git-svn-id: https://svn.dealii.org/trunk@30914 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/distributed/tria.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/deal.II/source/distributed/tria.cc b/deal.II/source/distributed/tria.cc index 60f6249249..5b0caa979f 100644 --- a/deal.II/source/distributed/tria.cc +++ b/deal.II/source/distributed/tria.cc @@ -3511,6 +3511,18 @@ namespace parallel /* user_data_size = */ 0, /* user_data_constructor = */ NULL, /* user_pointer */ this); + + + try + { + copy_local_forest_to_triangulation (); + } + catch (const typename Triangulation::DistortedCellList &) + { + // the underlying triangulation should not be checking for distorted + // cells + AssertThrow (false, ExcInternalError()); + } #else Assert(false, ExcMessage ("Need p4est version >= 0.3.4.1!")); -- 2.39.5