Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MatrixFree: Memory consumption of mapping data faces by cells in MappingInfo #15729

Merged
merged 1 commit into from
Jul 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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