]> https://gitweb.dealii.org/ - dealii.git/commitdiff
ConstraintKinds: implement memory_consumption() 12959/head
authorPeter Munch <peterrmuench@gmail.com>
Tue, 16 Nov 2021 19:31:14 +0000 (20:31 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Tue, 16 Nov 2021 19:31:14 +0000 (20:31 +0100)
include/deal.II/matrix_free/hanging_nodes_internal.h
source/matrix_free/dof_info.cc

index a5e0a0b5a9d1ce93ed9969a53647fd00cddccf68..97263a18200aa54a2c45557a9426056ad2d1c777 100644 (file)
@@ -109,6 +109,17 @@ namespace internal
 
 
 
+    /**
+     * Return the memory consumption in bytes of this enum class.
+     */
+    inline std::size_t
+    memory_consumption(const ConstraintKinds &)
+    {
+      return sizeof(ConstraintKinds);
+    }
+
+
+
     /**
      * Global operator which returns an object in which all bits are set which
      * are either set in the first or the second argument. This operator exists
index 7c249bd461ae74500f9b6df1675c9b4cf9e6b994..8e0eaf5a7383ac1eb60422b633164f54e7cff844 100644 (file)
@@ -1478,6 +1478,8 @@ namespace internal
       memory +=
         (row_starts.capacity() * sizeof(std::pair<unsigned int, unsigned int>));
       memory += MemoryConsumption::memory_consumption(dof_indices);
+      memory +=
+        MemoryConsumption::memory_consumption(hanging_node_constraint_masks);
       memory += MemoryConsumption::memory_consumption(row_starts_plain_indices);
       memory += MemoryConsumption::memory_consumption(plain_dof_indices);
       memory += MemoryConsumption::memory_consumption(constraint_indicator);

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.