]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix MatrixCreator::create_mass/laplace_matrix for hp 12840/head
authorPeter Munch <peterrmuench@gmail.com>
Sun, 17 Oct 2021 19:37:51 +0000 (21:37 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Sun, 17 Oct 2021 19:37:51 +0000 (21:37 +0200)
include/deal.II/numerics/matrix_creator.templates.h

index 586ca63beb39d9f2b67cb54048476008596f8752..ff9f2fac5c33eaffff762d2f78cc10fd289a9aee 100644 (file)
@@ -640,8 +640,8 @@ namespace MatrixCreator
     Assert(matrix.n() == dof.n_dofs(),
            ExcDimensionMismatch(matrix.n(), dof.n_dofs()));
 
-    hp::FECollection<dim, spacedim>      fe_collection(dof.get_fe());
-    hp::QCollection<dim>                 q_collection(q);
+    const auto &         fe_collection = dof.get_fe_collection();
+    hp::QCollection<dim> q_collection(q);
     hp::MappingCollection<dim, spacedim> mapping_collection(mapping);
     MatrixCreator::internal::AssemblerData::Scratch<dim, spacedim, number>
       assembler_data(fe_collection,
@@ -715,8 +715,8 @@ namespace MatrixCreator
     Assert(matrix.n() == dof.n_dofs(),
            ExcDimensionMismatch(matrix.n(), dof.n_dofs()));
 
-    hp::FECollection<dim, spacedim>      fe_collection(dof.get_fe());
-    hp::QCollection<dim>                 q_collection(q);
+    const auto &         fe_collection = dof.get_fe_collection();
+    hp::QCollection<dim> q_collection(q);
     hp::MappingCollection<dim, spacedim> mapping_collection(mapping);
     MatrixCreator::internal::AssemblerData::Scratch<dim, spacedim, number>
       assembler_data(fe_collection,
@@ -1871,8 +1871,8 @@ namespace MatrixCreator
     Assert(matrix.n() == dof.n_dofs(),
            ExcDimensionMismatch(matrix.n(), dof.n_dofs()));
 
-    hp::FECollection<dim, spacedim>      fe_collection(dof.get_fe());
-    hp::QCollection<dim>                 q_collection(q);
+    const auto &         fe_collection = dof.get_fe_collection();
+    hp::QCollection<dim> q_collection(q);
     hp::MappingCollection<dim, spacedim> mapping_collection(mapping);
     MatrixCreator::internal::AssemblerData::Scratch<dim, spacedim, double>
       assembler_data(fe_collection,
@@ -1944,8 +1944,8 @@ namespace MatrixCreator
     Assert(matrix.n() == dof.n_dofs(),
            ExcDimensionMismatch(matrix.n(), dof.n_dofs()));
 
-    hp::FECollection<dim, spacedim>      fe_collection(dof.get_fe());
-    hp::QCollection<dim>                 q_collection(q);
+    const auto &         fe_collection = dof.get_fe_collection();
+    hp::QCollection<dim> q_collection(q);
     hp::MappingCollection<dim, spacedim> mapping_collection(mapping);
     MatrixCreator::internal::AssemblerData::Scratch<dim, spacedim, double>
       assembler_data(fe_collection,

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.