Skip to content

Commit

Permalink
Merge pull request #15729 from bergbauer/memory_ecl
Browse files Browse the repository at this point in the history
MatrixFree: Memory consumption of mapping data faces by cells in MappingInfo
  • Loading branch information
bangerth committed Jul 12, 2023
2 parents 9e4231a + ea7bf90 commit bc214ab
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions include/deal.II/matrix_free/mapping_info.templates.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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);
}
}

Expand Down

0 comments on commit bc214ab

Please sign in to comment.