]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
add Assert for make_periodicity_constraints for a distributed Triangulation
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 27 Sep 2012 18:51:52 +0000 (18:51 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 27 Sep 2012 18:51:52 +0000 (18:51 +0000)
git-svn-id: https://svn.dealii.org/trunk@26803 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/dofs/dof_tools.cc

index 6af4c2564323b1647902adde4834da05fb73c230..a955d6d26b21a6cebe01ff2c1fd250bbc4471b6a 100644 (file)
@@ -3392,6 +3392,12 @@ namespace DoFTools
     static const int space_dim = DH::space_dimension;
     Assert (0<=direction && direction<space_dim,
             ExcIndexRange (direction, 0, space_dim));
+    Assert ((dynamic_cast<const parallel::distributed::Triangulation<DH::dimension,DH::space_dimension>*>
+             (&dof_handler.get_tria())
+             ==
+             0),
+            ExcMessage ("This function can not be used with distributed triangulations."
+                        "See the documentation for more information."));
 
     typedef typename DH::cell_iterator CellIterator;
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.