From 010b5e0bd867fa42d25cfc4913bd4200e8e1633d Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 24 Oct 2021 19:56:20 -0600 Subject: [PATCH] Fix Patch member functions. --- source/base/data_out_base.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index 4a66fadcd3..15ea5df1c6 100644 --- a/source/base/data_out_base.cc +++ b/source/base/data_out_base.cc @@ -1981,6 +1981,9 @@ namespace DataOutBase bool Patch::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::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)); } -- 2.39.5