From: Wolfgang Bangerth Date: Mon, 25 Oct 2021 01:56:20 +0000 (-0600) Subject: Fix Patch member functions. X-Git-Tag: v9.4.0-rc1~898^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=010b5e0bd867fa42d25cfc4913bd4200e8e1633d;p=dealii.git Fix Patch member functions. --- 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)); }