]> https://gitweb.dealii.org/ - dealii.git/commitdiff
FEEvaluationBase::apply_hanging_node_constraints(): clean up 13054/head
authorPeter Munch <peterrmuench@gmail.com>
Thu, 9 Dec 2021 16:49:54 +0000 (17:49 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Thu, 9 Dec 2021 16:51:48 +0000 (17:51 +0100)
include/deal.II/matrix_free/fe_evaluation.h

index 954113378dd1f753c3210a5a24821df44c33f4e3..be9a88ce8f6953f409305732f005a4a3dc3642c3 100644 (file)
@@ -779,9 +779,8 @@ protected:
   /**
    * Apply hanging-node constraints.
    */
-  template <bool transpose>
   void
-  apply_hanging_node_constraints() const;
+  apply_hanging_node_constraints(const bool transpose) const;
 
   /**
    * This is the general array for all data fields.
@@ -4433,16 +4432,15 @@ template <int dim,
           typename Number,
           bool is_face,
           typename VectorizedArrayType>
-template <bool transpose>
 inline void
 FEEvaluationBase<dim, n_components_, Number, is_face, VectorizedArrayType>::
-  apply_hanging_node_constraints() const
+  apply_hanging_node_constraints(const bool transpose) const
 {
   if (this->dof_info == nullptr ||
       this->dof_info->hanging_node_constraint_masks.size() == 0)
     return; // nothing to do with faces
 
-  unsigned int n_vectorization_actual =
+  const unsigned int n_vectorization_actual =
     this->dof_info
       ->n_vectorization_lanes_filled[this->dof_access_index][this->cell];
 
@@ -4526,7 +4524,7 @@ FEEvaluationBase<dim, n_components_, Number, is_face, VectorizedArrayType>::
   internal::VectorReader<Number, VectorizedArrayType> reader;
   read_write_operation(reader, src_data.first, src_data.second, mask, true);
 
-  apply_hanging_node_constraints<false>();
+  apply_hanging_node_constraints(false);
 
 #  ifdef DEBUG
   this->dof_values_initialized = true;
@@ -4583,7 +4581,7 @@ FEEvaluationBase<dim, n_components_, Number, is_face, VectorizedArrayType>::
          internal::ExcAccessToUninitializedField());
 #  endif
 
-  apply_hanging_node_constraints<true>();
+  apply_hanging_node_constraints(true);
 
   const auto dst_data = internal::get_vector_data<n_components_>(
     dst,

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.