From: Maximilian Bergbauer Date: Wed, 12 Jul 2023 11:40:49 +0000 (+0200) Subject: Memory consumption of mapping data faces by cells X-Git-Tag: relicensing~691^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15729%2Fhead;p=dealii.git Memory consumption of mapping data faces by cells --- diff --git a/include/deal.II/matrix_free/mapping_info.templates.h b/include/deal.II/matrix_free/mapping_info.templates.h index 3f447a1da6..757097ff9b 100644 --- a/include/deal.II/matrix_free/mapping_info.templates.h +++ b/include/deal.II/matrix_free/mapping_info.templates.h @@ -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::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::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); } }