]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove DoFInfo::dimension 14901/head
authorPeter Munch <peterrmuench@gmail.com>
Thu, 16 Mar 2023 10:36:06 +0000 (11:36 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Thu, 16 Mar 2023 10:36:06 +0000 (11:36 +0100)
include/deal.II/matrix_free/dof_info.h
include/deal.II/matrix_free/matrix_free.templates.h
source/matrix_free/dof_info.cc

index 1e45a1bac8095f683c7171b210dc16bab0d58c31..5f85600ae7f563a7a8969015e332b8865735a82f 100644 (file)
@@ -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
index 4e418a9ef10e0618f19c8ef195a10ed4e941a0c4..447af78ff75a2fc8e0d6d73a8aeead6274f584b7 100644 (file)
@@ -519,7 +519,6 @@ MatrixFree<dim, Number, VectorizedArrayType>::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 +
index b51828f6af421a2818da3365add6220d583e9c76..c455ad48d1dda1f36aa16d8fd06e0ad82dcef212 100644 (file)
@@ -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();

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.