]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Also change the naming of function arguments in the implementation. 6271/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 19 Apr 2018 16:23:52 +0000 (10:23 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 19 Apr 2018 20:42:54 +0000 (14:42 -0600)
source/distributed/tria.cc

index 2d8e0844fc00d596c8c544bb83963cbe3254defe..ec773e0f52e0215ea5bc2d08e1f2512871144fb5 100644 (file)
@@ -816,7 +816,7 @@ namespace
                               const typename Triangulation<dim,spacedim>::cell_iterator &dealii_cell,
                               const typename Triangulation<dim,spacedim>::cell_iterator &parent_cell,
                               const typename internal::p4est::types<dim>::quadrant &p4est_cell,
-                              const unsigned int offset,
+                              const unsigned int handle,
                               const typename std::function<
                               void(typename parallel::distributed::Triangulation<dim,spacedim>::cell_iterator, typename parallel::distributed::Triangulation<dim,spacedim>::CellStatus, void *)
                               > &unpack_callback)
@@ -863,7 +863,7 @@ namespace
                                                       dealii_cell->child(c),
                                                       dealii_cell,
                                                       p4est_child[c],
-                                                      offset,
+                                                      handle,
                                                       unpack_callback);
           }
       }
@@ -876,7 +876,7 @@ namespace
               sc_array_index (const_cast<sc_array_t *>(&tree.quadrants), idx)
             );
 
-        void *ptr = static_cast<char *>(q->p.user_data) + offset;
+        void *ptr = static_cast<char *>(q->p.user_data) + handle;
         typename parallel::distributed::Triangulation<dim,spacedim>::CellStatus
         status = * static_cast<
                  typename parallel::distributed::Triangulation<dim,spacedim>::CellStatus *
@@ -3261,14 +3261,14 @@ namespace parallel
     template <int dim, int spacedim>
     void
     Triangulation<dim,spacedim>::
-    notify_ready_to_unpack (const unsigned int offset,
+    notify_ready_to_unpack (const unsigned int handle,
                             const std::function<void (const cell_iterator &,
                                                       const CellStatus,
                                                       const void *)> &unpack_callback)
     {
-      Assert (offset >= sizeof(CellStatus),
+      Assert (handle >= sizeof(CellStatus),
               ExcMessage ("Invalid offset."));
-      Assert (offset < sizeof(CellStatus)+attached_data_size,
+      Assert (handle < sizeof(CellStatus)+attached_data_size,
               ExcMessage ("Invalid offset."));
       Assert (n_attached_datas > 0,
               ExcMessage ("The notify_ready_to_unpack() has already been called "
@@ -3298,7 +3298,7 @@ namespace parallel
                                                      cell,
                                                      cell,
                                                      p4est_coarse_cell,
-                                                     offset,
+                                                     handle,
                                                      unpack_callback);
         }
 

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.