From: Julius Witte Date: Wed, 25 Sep 2019 16:38:09 +0000 (-0400) Subject: Store underlying Mapping X-Git-Tag: v9.2.0-rc1~1010^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f415227f1558bc8fae32a00d49c414023853b813;p=dealii.git Store underlying Mapping --- 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