]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Improve error message.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Jan 2014 07:34:12 +0000 (07:34 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Jan 2014 07:34:12 +0000 (07:34 +0000)
git-svn-id: https://svn.dealii.org/trunk@32274 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/grid/tria.cc

index 9dc8aa8edfb29d3e7adb9a4e009af07cc971c526..1795ace4fe6ad7add547e7f1dbc541b069fc3d33 100644 (file)
@@ -9467,7 +9467,9 @@ Triangulation (const Triangulation<dim, spacedim> &other)
   check_for_distorted_cells(other.check_for_distorted_cells),
   vertex_to_boundary_id_map_1d (0)
 {
-  Assert (false, ExcInternalError());
+  Assert (false, ExcMessage ("You are not allowed to call this constructor "
+                             "because copying Triangulation objects is not "
+                             "allowed. Use Triangulation::copy_from() instead."));
 }
 
 

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.