From 59ae2211d1f0dbf10e854f3f46ea81ca11e249ac Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Sun, 17 Oct 2021 21:37:51 +0200 Subject: [PATCH] Fix MatrixCreator::create_mass/laplace_matrix for hp --- .../deal.II/numerics/matrix_creator.templates.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/deal.II/numerics/matrix_creator.templates.h b/include/deal.II/numerics/matrix_creator.templates.h index 586ca63beb..ff9f2fac5c 100644 --- a/include/deal.II/numerics/matrix_creator.templates.h +++ b/include/deal.II/numerics/matrix_creator.templates.h @@ -640,8 +640,8 @@ namespace MatrixCreator Assert(matrix.n() == dof.n_dofs(), ExcDimensionMismatch(matrix.n(), dof.n_dofs())); - hp::FECollection fe_collection(dof.get_fe()); - hp::QCollection q_collection(q); + const auto & fe_collection = dof.get_fe_collection(); + hp::QCollection q_collection(q); hp::MappingCollection mapping_collection(mapping); MatrixCreator::internal::AssemblerData::Scratch assembler_data(fe_collection, @@ -715,8 +715,8 @@ namespace MatrixCreator Assert(matrix.n() == dof.n_dofs(), ExcDimensionMismatch(matrix.n(), dof.n_dofs())); - hp::FECollection fe_collection(dof.get_fe()); - hp::QCollection q_collection(q); + const auto & fe_collection = dof.get_fe_collection(); + hp::QCollection q_collection(q); hp::MappingCollection mapping_collection(mapping); MatrixCreator::internal::AssemblerData::Scratch assembler_data(fe_collection, @@ -1871,8 +1871,8 @@ namespace MatrixCreator Assert(matrix.n() == dof.n_dofs(), ExcDimensionMismatch(matrix.n(), dof.n_dofs())); - hp::FECollection fe_collection(dof.get_fe()); - hp::QCollection q_collection(q); + const auto & fe_collection = dof.get_fe_collection(); + hp::QCollection q_collection(q); hp::MappingCollection mapping_collection(mapping); MatrixCreator::internal::AssemblerData::Scratch assembler_data(fe_collection, @@ -1944,8 +1944,8 @@ namespace MatrixCreator Assert(matrix.n() == dof.n_dofs(), ExcDimensionMismatch(matrix.n(), dof.n_dofs())); - hp::FECollection fe_collection(dof.get_fe()); - hp::QCollection q_collection(q); + const auto & fe_collection = dof.get_fe_collection(); + hp::QCollection q_collection(q); hp::MappingCollection mapping_collection(mapping); MatrixCreator::internal::AssemblerData::Scratch assembler_data(fe_collection, -- 2.39.5