]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Store underlying Mapping 8856/head
authorJulius Witte <julius.witte@iwr.uni-heidelberg.de>
Wed, 25 Sep 2019 16:38:09 +0000 (12:38 -0400)
committerJulius Witte <julius.witte@iwr.uni-heidelberg.de>
Wed, 25 Sep 2019 16:38:09 +0000 (12:38 -0400)
include/deal.II/matrix_free/mapping_info.h
include/deal.II/matrix_free/mapping_info.templates.h

index 3adf9780063b5c9ef4b33006f9415de4e1fc8baf..5a0c8bc64be404d90c0ab48280a12aac4dc1265e 100644 (file)
@@ -385,6 +385,11 @@ namespace internal
       std::vector<MappingInfoStorage<dim - 1, dim, Number, VectorizedArrayType>>
         face_data_by_cells;
 
+      /**
+       * The pointer to the underlying Mapping object.
+       */
+      SmartPointer<const Mapping<dim>> mapping;
+
       /**
        * Computes the information in the given cells, called within
        * initialize.
index 6e8d4fb7ec48f3023cb5ddd0bb7fb9911ed3a657..d7d21323a4b212eb0f44987432c3baecd1cb7787 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.