]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Rename a variable to be more descriptive.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 4 Sep 2013 14:31:33 +0000 (14:31 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 4 Sep 2013 14:31:33 +0000 (14:31 +0000)
git-svn-id: https://svn.dealii.org/trunk@30593 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/hp/dof_levels.h
deal.II/source/hp/dof_handler.cc
deal.II/source/hp/dof_levels.cc

index 0f34ab2d45251aba89eab088598ec3d8c0ead288..20da1f5c56f06e30859d66b9ae89644f2326f9e3 100644 (file)
@@ -76,14 +76,14 @@ namespace internal
 
       /**
        * Store the start index for the degrees of freedom of each
-       * object in the @p dofs array. If the cell corresponding to
+       * object in the @p dof_indices array. If the cell corresponding to
        * a particular index in this array is not active on this level,
        * then we do not store any DoFs for it. In that case, the offset
        * we store here must be an invalid number and indeed we store
        * <code>(std::vector<types::global_dof_index>::size_type)(-1)</code>
        * for it.
        *
-       * The type we store is then obviously the type the @p dofs array
+       * The type we store is then obviously the type the @p dof_indices array
        * uses for indexing.
        */
       std::vector<std::vector<types::global_dof_index>::size_type> dof_offsets;
@@ -93,7 +93,7 @@ namespace internal
        * information. The dof_offsets field determines where each
        * (active) cell's data is stored.
        */
-      std::vector<types::global_dof_index> dofs;
+      std::vector<types::global_dof_index> dof_indices;
 
     public:
 
@@ -221,7 +221,7 @@ namespace internal
 
       Assert (fe_index == active_fe_indices[obj_index],
              ExcMessage ("FE index does not match that of the present cell"));
-      return dofs[dof_offsets[obj_index]+local_index];
+      return dof_indices[dof_offsets[obj_index]+local_index];
     }
 
 
@@ -248,7 +248,7 @@ namespace internal
 
       Assert (fe_index == active_fe_indices[obj_index],
              ExcMessage ("FE index does not match that of the present cell"));
-      dofs[dof_offsets[obj_index]+local_index] = global_index;
+      dof_indices[dof_offsets[obj_index]+local_index] = global_index;
     }
 
 
index 8a32c2022a6e882f1b5894743fb29ab56f4a2e7a..7e8da4ecdaba483834ae421fbfd8c08c2f19d3f2 100644 (file)
@@ -592,7 +592,7 @@ namespace internal
                     next_free_dof += cell->get_fe().dofs_per_line;
                   }
 
-              dof_handler.levels[level]->dofs
+              dof_handler.levels[level]->dof_indices
                 = std::vector<types::global_dof_index> (next_free_dof,
                                                         DoFHandler<dim,spacedim>::invalid_dof_index);
             }
@@ -614,7 +614,7 @@ namespace internal
                 if (!cell->has_children())
                   counter += cell->get_fe().dofs_per_line;
 
-              Assert (dof_handler.levels[level]->dofs.size() == counter,
+              Assert (dof_handler.levels[level]->dof_indices.size() == counter,
                       ExcInternalError());
               Assert (static_cast<unsigned int>
                       (std::count (dof_handler.levels[level]->dof_offsets.begin(),
@@ -709,7 +709,7 @@ namespace internal
                     next_free_dof += cell->get_fe().dofs_per_quad;
                   }
 
-              dof_handler.levels[level]->dofs
+              dof_handler.levels[level]->dof_indices
                 = std::vector<types::global_dof_index> (next_free_dof,
                                                         DoFHandler<dim,spacedim>::invalid_dof_index);
             }
@@ -731,7 +731,7 @@ namespace internal
                 if (!cell->has_children())
                   counter += cell->get_fe().dofs_per_quad;
 
-              Assert (dof_handler.levels[level]->dofs.size() == counter,
+              Assert (dof_handler.levels[level]->dof_indices.size() == counter,
                       ExcInternalError());
               Assert (static_cast<unsigned int>
                       (std::count (dof_handler.levels[level]->dof_offsets.begin(),
@@ -1075,7 +1075,7 @@ namespace internal
                     next_free_dof += cell->get_fe().dofs_per_hex;
                   }
 
-              dof_handler.levels[level]->dofs
+              dof_handler.levels[level]->dof_indices
                 = std::vector<types::global_dof_index> (next_free_dof,
                                                         DoFHandler<dim,spacedim>::invalid_dof_index);
             }
@@ -1097,7 +1097,7 @@ namespace internal
                 if (!cell->has_children())
                   counter += cell->get_fe().dofs_per_hex;
 
-              Assert (dof_handler.levels[level]->dofs.size() == counter,
+              Assert (dof_handler.levels[level]->dof_indices.size() == counter,
                       ExcInternalError());
               Assert (static_cast<unsigned int>
                       (std::count (dof_handler.levels[level]->dof_offsets.begin(),
index 6e285118095cb32f383b04987324e6d7d0b75798..bed6eab33c1a910ec077415cc1c91f75621d4da8 100644 (file)
@@ -28,7 +28,7 @@ namespace internal
     DoFLevel<dim>::memory_consumption () const
     {
       return (MemoryConsumption::memory_consumption (active_fe_indices) +
-             MemoryConsumption::memory_consumption (dofs) +
+             MemoryConsumption::memory_consumption (dof_indices) +
               MemoryConsumption::memory_consumption (dof_offsets));
     }
 

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.