]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Memory consumption of mapping data faces by cells 15729/head
authorMaximilian Bergbauer <maximilian.bergbauer@tum.de>
Wed, 12 Jul 2023 11:40:49 +0000 (13:40 +0200)
committerMaximilian Bergbauer <maximilian.bergbauer@tum.de>
Wed, 12 Jul 2023 11:40:49 +0000 (13:40 +0200)
include/deal.II/matrix_free/mapping_info.templates.h

index 3f447a1da62e8cebfcfe1815559d3114f28b1747..757097ff9baaacd8e8f94f4f02a59afb607065af 100644 (file)
@@ -3318,8 +3318,11 @@ namespace internal
     {
       std::size_t memory = MemoryConsumption::memory_consumption(cell_data);
       memory += MemoryConsumption::memory_consumption(face_data);
+      memory += MemoryConsumption::memory_consumption(face_data_by_cells);
       memory += cell_type.capacity() * sizeof(GeometryType);
       memory += face_type.capacity() * sizeof(GeometryType);
+      memory += faces_by_cells_type.capacity() *
+                GeometryInfo<dim>::faces_per_cell * sizeof(GeometryType);
       memory += sizeof(*this);
       return memory;
     }
@@ -3341,11 +3344,19 @@ namespace internal
       task_info.print_memory_statistics(out,
                                         face_type.capacity() *
                                           sizeof(GeometryType));
+
+      out << "    Faces by cells types:            ";
+      task_info.print_memory_statistics(out,
+                                        faces_by_cells_type.capacity() *
+                                          GeometryInfo<dim>::faces_per_cell *
+                                          sizeof(GeometryType));
+
       for (unsigned int j = 0; j < cell_data.size(); ++j)
         {
           out << "    Data component " << j << std::endl;
           cell_data[j].print_memory_consumption(out, task_info);
           face_data[j].print_memory_consumption(out, task_info);
+          face_data_by_cells[j].print_memory_consumption(out, task_info);
         }
     }
 

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.