From f415227f1558bc8fae32a00d49c414023853b813 Mon Sep 17 00:00:00 2001 From: Julius Witte Date: Wed, 25 Sep 2019 12:38:09 -0400 Subject: [PATCH] Store underlying Mapping --- include/deal.II/matrix_free/mapping_info.h | 5 +++++ include/deal.II/matrix_free/mapping_info.templates.h | 1 + 2 files changed, 6 insertions(+) diff --git a/include/deal.II/matrix_free/mapping_info.h b/include/deal.II/matrix_free/mapping_info.h index 3adf978006..5a0c8bc64b 100644 --- a/include/deal.II/matrix_free/mapping_info.h +++ b/include/deal.II/matrix_free/mapping_info.h @@ -385,6 +385,11 @@ namespace internal std::vector> face_data_by_cells; + /** + * The pointer to the underlying Mapping object. + */ + SmartPointer> mapping; + /** * Computes the information in the given cells, called within * initialize. diff --git a/include/deal.II/matrix_free/mapping_info.templates.h b/include/deal.II/matrix_free/mapping_info.templates.h index 6e8d4fb7ec..d7d21323a4 100644 --- a/include/deal.II/matrix_free/mapping_info.templates.h +++ b/include/deal.II/matrix_free/mapping_info.templates.h @@ -283,6 +283,7 @@ namespace internal const UpdateFlags update_flags_faces_by_cells) { clear(); + this->mapping = &mapping; // Could call these functions in parallel, but not useful because the // work inside is nicely split up already -- 2.39.5