]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix Patch member functions. 12876/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 25 Oct 2021 01:56:20 +0000 (19:56 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 25 Oct 2021 01:56:20 +0000 (19:56 -0600)
source/base/data_out_base.cc

index 4a66fadcd3d4cf3200613e9846d21c9a7104a9f6..15ea5df1c6c9ab9f81ddd4ce98ae2dcc96544649 100644 (file)
@@ -1981,6 +1981,9 @@ namespace DataOutBase
   bool
   Patch<dim, spacedim>::operator==(const Patch &patch) const
   {
+    if (reference_cell != patch.reference_cell)
+      return false;
+
     // TODO: make tolerance relative
     const double epsilon = 3e-16;
     for (const unsigned int i : GeometryInfo<dim>::vertex_indices())
@@ -2027,7 +2030,8 @@ namespace DataOutBase
             MemoryConsumption::memory_consumption(patch_index) +
             MemoryConsumption::memory_consumption(n_subdivisions) +
             MemoryConsumption::memory_consumption(data) +
-            MemoryConsumption::memory_consumption(points_are_available));
+            MemoryConsumption::memory_consumption(points_are_available) +
+            sizeof(reference_cell));
   }
 
 

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.