From 32eeb7a64e961146c15ed9435c741fa4d3c21bce Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Thu, 16 Mar 2023 11:36:06 +0100 Subject: [PATCH] Remove DoFInfo::dimension --- include/deal.II/matrix_free/dof_info.h | 7 ------- include/deal.II/matrix_free/matrix_free.templates.h | 2 -- source/matrix_free/dof_info.cc | 1 - 3 files changed, 10 deletions(-) diff --git a/include/deal.II/matrix_free/dof_info.h b/include/deal.II/matrix_free/dof_info.h index 1e45a1bac8..5f85600ae7 100644 --- a/include/deal.II/matrix_free/dof_info.h +++ b/include/deal.II/matrix_free/dof_info.h @@ -465,13 +465,6 @@ namespace internal dof_access_cell = 2 }; - /** - * Stores the dimension of the underlying DoFHandler. Since the indices - * are not templated, this is the variable that makes the dimension - * accessible in the (rare) cases it is needed inside this class. - */ - unsigned int dimension; - /** * For efficiency reasons, always keep a fixed number of cells with * similar properties together. This variable controls the number of diff --git a/include/deal.II/matrix_free/matrix_free.templates.h b/include/deal.II/matrix_free/matrix_free.templates.h index 4e418a9ef1..447af78ff7 100644 --- a/include/deal.II/matrix_free/matrix_free.templates.h +++ b/include/deal.II/matrix_free/matrix_free.templates.h @@ -519,7 +519,6 @@ MatrixFree::internal_reinit( { Assert(dof_handler[i]->get_fe_collection().size() == 1, ExcNotImplemented()); - dof_info[i].dimension = dim; dof_info[i].n_base_elements = dof_handler[i]->get_fe(0).n_base_elements(); dof_info[i].n_components.resize(dof_info[i].n_base_elements); @@ -1226,7 +1225,6 @@ namespace internal dof_info[no].dofs_per_cell.push_back(fe.n_dofs_per_cell()); dof_info[no].dofs_per_face.push_back(fe.n_dofs_per_face( 0)); // we assume that all faces have the same number of dofs - dof_info[no].dimension = dim; dof_info[no].n_base_elements = fe.n_base_elements(); dof_info[no].n_components.resize(dof_info[no].n_base_elements); dof_info[no].start_components.resize(dof_info[no].n_base_elements + diff --git a/source/matrix_free/dof_info.cc b/source/matrix_free/dof_info.cc index b51828f6af..c455ad48d1 100644 --- a/source/matrix_free/dof_info.cc +++ b/source/matrix_free/dof_info.cc @@ -56,7 +56,6 @@ namespace internal dofs_per_cell.clear(); dofs_per_face.clear(); vectorization_length = 1; - dimension = 2; global_base_element_offset = 0; n_base_elements = 0; n_components.clear(); -- 2.39.5