From: daniel.arndt Date: Tue, 24 Sep 2013 14:37:29 +0000 (+0000) Subject: Fixed bug in add_periodicity. There were errors when the mesh is not immediately... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20478abb355914e7b58f0269bf79c1f5bfe4a090;p=dealii-svn.git 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 --- 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!"));