]> https://gitweb.dealii.org/ - dealii.git/commitdiff
added check not to call faces if dim == 1 when clearing user data 12293/head
authorNicola Giuliani <ngiuliani@sissa.it>
Mon, 24 May 2021 08:25:48 +0000 (10:25 +0200)
committerNicola Giuliani <ngiuliani@sissa.it>
Mon, 24 May 2021 08:42:53 +0000 (10:42 +0200)
source/grid/tria.cc

index 96efb3aa0557d3d98821720084515a45090441bc..0c18c0957d90baddbfd86a3941665f014a988129 100644 (file)
@@ -10992,7 +10992,8 @@ Triangulation<dim, spacedim>::clear_user_data()
 {
   // let functions in anonymous namespace do their work
   dealii::clear_user_data(levels);
-  dealii::clear_user_data(faces.get());
+  if (dim > 1)
+    dealii::clear_user_data(faces.get());
 }
 
 

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.