]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Rename variable 8681/head
authorPeter Munch <peterrmuench@gmail.com>
Mon, 2 Sep 2019 08:15:16 +0000 (10:15 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Tue, 3 Sep 2019 11:51:02 +0000 (13:51 +0200)
include/deal.II/matrix_free/matrix_free.h
include/deal.II/matrix_free/matrix_free.templates.h

index 87ed1542fa4be7276eb0780af1a9e3c402ebeb72..5b3cf356d9e35e432202fc7c7ef48a1f15dddddd 100644 (file)
@@ -1307,7 +1307,7 @@ public:
   typename DoFHandler<dim>::cell_iterator
   get_cell_iterator(const unsigned int macro_cell_number,
                     const unsigned int vector_number,
-                    const unsigned int fe_component = 0) const;
+                    const unsigned int dof_handler_index = 0) const;
 
   /**
    * This returns the cell iterator in deal.II speak to a given cell in the
@@ -1392,7 +1392,7 @@ public:
    * given hp index.
    */
   unsigned int
-  get_dofs_per_face(const unsigned int fe_component       = 0,
+  get_dofs_per_face(const unsigned int dof_handler_index  = 0,
                     const unsigned int hp_active_fe_index = 0) const;
 
   /**
index 678b8226edaa0ccc7f0f9b433d781217a4a882c5..c7fb9ce1da64d4f081d730b59c67383c7f4b404e 100644 (file)
@@ -131,14 +131,14 @@ MatrixFree<dim, Number, VectorizedArrayType>::renumber_dofs(
 template <int dim, typename Number, typename VectorizedArrayType>
 const DoFHandler<dim> &
 MatrixFree<dim, Number, VectorizedArrayType>::get_dof_handler(
-  const unsigned int dof_index) const
+  const unsigned int dof_handler_index) const
 {
-  AssertIndexRange(dof_index, n_components());
+  AssertIndexRange(dof_handler_index, n_components());
   if (dof_handlers.active_dof_handler == DoFHandlers::usual)
     {
       AssertDimension(dof_handlers.dof_handler.size(),
                       dof_handlers.n_dof_handlers);
-      return *dof_handlers.dof_handler[dof_index];
+      return *dof_handlers.dof_handler[dof_handler_index];
     }
   else
     {
@@ -156,11 +156,11 @@ typename DoFHandler<dim>::cell_iterator
 MatrixFree<dim, Number, VectorizedArrayType>::get_cell_iterator(
   const unsigned int macro_cell_number,
   const unsigned int vector_number,
-  const unsigned int dof_index) const
+  const unsigned int dof_handler_index) const
 {
   const unsigned int vectorization_length =
     VectorizedArrayType::n_array_elements;
-  AssertIndexRange(dof_index, dof_handlers.n_dof_handlers);
+  AssertIndexRange(dof_handler_index, dof_handlers.n_dof_handlers);
   AssertIndexRange(macro_cell_number, task_info.cell_partition_data.back());
   AssertIndexRange(vector_number, n_components_filled(macro_cell_number));
 
@@ -169,7 +169,7 @@ MatrixFree<dim, Number, VectorizedArrayType>::get_cell_iterator(
     {
       AssertDimension(dof_handlers.dof_handler.size(),
                       dof_handlers.n_dof_handlers);
-      dofh = dof_handlers.dof_handler[dof_index];
+      dofh = dof_handlers.dof_handler[dof_handler_index];
     }
   else
     {
@@ -193,17 +193,18 @@ typename hp::DoFHandler<dim>::active_cell_iterator
 MatrixFree<dim, Number, VectorizedArrayType>::get_hp_cell_iterator(
   const unsigned int macro_cell_number,
   const unsigned int vector_number,
-  const unsigned int dof_index) const
+  const unsigned int dof_handler_index) const
 {
   constexpr unsigned int vectorization_length =
     VectorizedArrayType::n_array_elements;
-  AssertIndexRange(dof_index, dof_handlers.n_dof_handlers);
+  AssertIndexRange(dof_handler_index, dof_handlers.n_dof_handlers);
   AssertIndexRange(macro_cell_number, task_info.cell_partition_data.back());
   AssertIndexRange(vector_number, n_components_filled(macro_cell_number));
 
   Assert(dof_handlers.active_dof_handler == DoFHandlers::hp,
          ExcNotImplemented());
-  const hp::DoFHandler<dim> *dofh = dof_handlers.hp_dof_handler[dof_index];
+  const hp::DoFHandler<dim> *dofh =
+    dof_handlers.hp_dof_handler[dof_handler_index];
   std::pair<unsigned int, unsigned int> index =
     cell_level_index[macro_cell_number * vectorization_length + vector_number];
   return typename hp::DoFHandler<dim>::cell_iterator(&dofh->get_triangulation(),

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.