]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove parameter use_fast_hanging_node_algorithm from MF 13634/head
authorPeter Munch <peterrmuench@gmail.com>
Sat, 23 Apr 2022 06:52:20 +0000 (08:52 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Sun, 24 Apr 2022 06:35:28 +0000 (08:35 +0200)
include/deal.II/matrix_free/matrix_free.h
include/deal.II/matrix_free/matrix_free.templates.h
tests/matrix_free/mixed_mesh_hn_algorithm_01.cc
tests/matrix_free/mixed_mesh_hn_algorithm_01.output

index c8d7e110ded4d0d7f1bc3888794ab4cdea67c800..a9f5138a1ee2c5f11ad2f27039ce4fc58e203c27 100644 (file)
@@ -224,8 +224,7 @@ public:
       const bool         overlap_communication_computation    = true,
       const bool         hold_all_faces_to_owned_cells        = false,
       const bool         cell_vectorization_categories_strict = false,
-      const bool         allow_ghosted_vectors_in_loops       = true,
-      const bool         use_fast_hanging_node_algorithm      = true)
+      const bool         allow_ghosted_vectors_in_loops       = true)
       : tasks_parallel_scheme(tasks_parallel_scheme)
       , tasks_block_size(tasks_block_size)
       , mapping_update_flags(mapping_update_flags)
@@ -241,7 +240,6 @@ public:
       , cell_vectorization_categories_strict(
           cell_vectorization_categories_strict)
       , allow_ghosted_vectors_in_loops(allow_ghosted_vectors_in_loops)
-      , use_fast_hanging_node_algorithm(use_fast_hanging_node_algorithm)
       , communicator_sm(MPI_COMM_SELF)
     {}
 
@@ -268,7 +266,6 @@ public:
       , cell_vectorization_categories_strict(
           other.cell_vectorization_categories_strict)
       , allow_ghosted_vectors_in_loops(other.allow_ghosted_vectors_in_loops)
-      , use_fast_hanging_node_algorithm(other.use_fast_hanging_node_algorithm)
       , communicator_sm(other.communicator_sm)
     {}
 
@@ -296,9 +293,8 @@ public:
       cell_vectorization_category   = other.cell_vectorization_category;
       cell_vectorization_categories_strict =
         other.cell_vectorization_categories_strict;
-      allow_ghosted_vectors_in_loops  = other.allow_ghosted_vectors_in_loops;
-      use_fast_hanging_node_algorithm = other.use_fast_hanging_node_algorithm;
-      communicator_sm                 = other.communicator_sm;
+      allow_ghosted_vectors_in_loops = other.allow_ghosted_vectors_in_loops;
+      communicator_sm                = other.communicator_sm;
 
       return *this;
     }
@@ -535,11 +531,6 @@ public:
      */
     bool allow_ghosted_vectors_in_loops;
 
-    /**
-     * Flag that allows to disable the fast hanging-node algorithm.
-     */
-    bool use_fast_hanging_node_algorithm;
-
     /**
      * Shared-memory MPI communicator. Default: MPI_COMM_SELF.
      */
index f406690258fad0aa0cab8c01117bd61c6ec9e669..9e3528b7b372ff1824a4b819cac8eded4fa1e734 100644 (file)
@@ -1064,8 +1064,7 @@ namespace internal
     std::vector<MatrixFreeFunctions::DoFInfo> &         dof_info,
     MatrixFreeFunctions::FaceSetup<dim> &               face_setup,
     MatrixFreeFunctions::ConstraintValues<double> &     constraint_values,
-    const bool use_vector_data_exchanger_full,
-    const bool use_fast_hanging_node_algorithm_in)
+    const bool use_vector_data_exchanger_full)
   {
     if (do_face_integrals)
       face_setup.initialize(dof_handler[0]->get_triangulation(),
@@ -1091,7 +1090,7 @@ namespace internal
 
     bool cell_categorization_enabled = !cell_vectorization_category.empty();
 
-    bool use_fast_hanging_node_algorithm = use_fast_hanging_node_algorithm_in;
+    bool use_fast_hanging_node_algorithm = true;
 
     if (use_fast_hanging_node_algorithm)
       {
@@ -1825,8 +1824,7 @@ MatrixFree<dim, Number, VectorizedArrayType>::initialize_indices(
     dof_info,
     face_setup,
     constraint_values,
-    additional_data.communicator_sm != MPI_COMM_SELF,
-    additional_data.use_fast_hanging_node_algorithm);
+    additional_data.communicator_sm != MPI_COMM_SELF);
 
   // set constraint pool from the std::map and reorder the indices
   std::vector<const std::vector<double> *> constraints(
index a9f6ae2ae1cdb50770801b52bff5c9d2b61b588f..803a7bbdb5d2b14f31be23fac3e8f96c18899882 100644 (file)
@@ -145,22 +145,4 @@ main()
 
     print("use_fast_hanging_node_algorithm = true", matrix_free);
   }
-
-  {
-    typename MatrixFree<dim, double, VectorizedArray<double, 1>>::AdditionalData
-      additional_data;
-    additional_data.mapping_update_flags = update_gradients | update_values;
-    additional_data.use_fast_hanging_node_algorithm = false;
-
-    MatrixFree<dim, double, VectorizedArray<double, 1>> matrix_free;
-    matrix_free.reinit(
-      mapping, dof_handler, constraints, quadrature_formula, additional_data);
-
-    for (const auto &i :
-         matrix_free.get_dof_info(0).hanging_node_constraint_masks)
-      deallog << static_cast<unsigned int>(i) << std::endl;
-    deallog << std::endl;
-
-    print("use_fast_hanging_node_algorithm = false", matrix_free);
-  }
 }
index 540231691334fa1fc1c90d6cab72216aaf4d55e4..b10dff389306539729e5ee9aaeea49551b18ffa4 100644 (file)
@@ -14,19 +14,3 @@ DEAL::0   : 8   12  10  14
 DEAL::17  : 9   10  3   1   
 DEAL::16  : 10  14  3   1   
 DEAL::
-DEAL::
-DEAL::use_fast_hanging_node_algorithm = false
-DEAL::0   : 12  13  14  
-DEAL::0   : 13  2   1   2   
-DEAL::0   : 14  1   2   1   
-DEAL::0   : 13  1   2   14  
-DEAL::0   : 0   1   2   
-DEAL::0   : 3   1   4   
-DEAL::0   : 5   4   1   
-DEAL::0   : 1   0   5   
-DEAL::0   : 6   5   0   
-DEAL::0   : 7   8   9   10  
-DEAL::0   : 8   12  10  14  
-DEAL::0   : 9   10  3   1   3   
-DEAL::0   : 10  14  1   3   1   
-DEAL::

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.