]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix indentation
authorBruno Blais <blais.bruno@gmail.com>
Mon, 21 Nov 2022 19:20:21 +0000 (14:20 -0500)
committerBruno Blais <blais.bruno@gmail.com>
Mon, 21 Nov 2022 19:20:21 +0000 (14:20 -0500)
include/deal.II/grid/grid_tools_cache.h
include/deal.II/grid/grid_tools_cache_update_flags.h
source/grid/grid_tools_cache.cc
source/particles/particle_handler.cc

index 9a25521f5824e94067db2d03f60b0cac9235bd98..6841c6263a3c2fa5370fca22757c56e2907e1a7e 100644 (file)
@@ -75,7 +75,7 @@ namespace GridTools
      * @param mapping The mapping to use when computing cached objects
      */
     Cache(const Triangulation<dim, spacedim> &tria,
-          const Mapping<dim, spacedim>       &mapping =
+          const Mapping<dim, spacedim> &      mapping =
             (ReferenceCells::get_hypercube<dim>()
 #ifndef _MSC_VER
                .template get_default_linear_mapping<dim, spacedim>()
index 7e0807befba1b3a90ea6c2cde4ba6b36a0c1acec..31dc1efcc058e3fbc442ac7a9c31a182ceddd860 100644 (file)
@@ -85,7 +85,8 @@ namespace GridTools
     update_vertex_to_neighbor_subdomain = 0x100,
 
     /**
-     * Update the information about which subdomains are connected to each vertex.
+     * Update the information about which subdomains are connected to each
+     * vertex.
      */
     update_vertex_with_ghost_neighbors = 0x200,
 
index f808f2889c1100c8557194d69dc3d553d91d2a65..4caa9a671a308efd33aa47277f7a78cf3cf39d30 100644 (file)
@@ -26,7 +26,7 @@ namespace GridTools
 {
   template <int dim, int spacedim>
   Cache<dim, spacedim>::Cache(const Triangulation<dim, spacedim> &tria,
-                              const Mapping<dim, spacedim>       &mapping)
+                              const Mapping<dim, spacedim> &      mapping)
     : update_flags(update_all)
     , tria(&tria)
     , mapping(&mapping)
index 0123fb7bd9b43869f14e63fa7c6e1ea69bae2f4b..243b5214726c3cd3cd5ffdbc4b5adc2ce879ba1e 100644 (file)
@@ -77,7 +77,7 @@ namespace Particles
   template <int dim, int spacedim>
   ParticleHandler<dim, spacedim>::ParticleHandler(
     const Triangulation<dim, spacedim> &triangulation,
-    const Mapping<dim, spacedim>       &mapping,
+    const Mapping<dim, spacedim> &      mapping,
     const unsigned int                  n_properties)
     : triangulation(&triangulation, typeid(*this).name())
     , mapping(&mapping, typeid(*this).name())
@@ -117,7 +117,7 @@ namespace Particles
   void
   ParticleHandler<dim, spacedim>::initialize(
     const Triangulation<dim, spacedim> &new_triangulation,
-    const Mapping<dim, spacedim>       &new_mapping,
+    const Mapping<dim, spacedim> &      new_mapping,
     const unsigned int                  n_properties)
   {
     clear();
@@ -577,7 +577,7 @@ namespace Particles
   template <int dim, int spacedim>
   typename ParticleHandler<dim, spacedim>::particle_iterator
   ParticleHandler<dim, spacedim>::insert_particle(
-    const Particle<dim, spacedim>                                     &particle,
+    const Particle<dim, spacedim> &                                    particle,
     const typename Triangulation<dim, spacedim>::active_cell_iterator &cell)
   {
     return insert_particle(particle.get_location(),
@@ -623,7 +623,7 @@ namespace Particles
   template <int dim, int spacedim>
   typename ParticleHandler<dim, spacedim>::particle_iterator
   ParticleHandler<dim, spacedim>::insert_particle(
-    const void                                                       *&data,
+    const void *&                                                      data,
     const typename Triangulation<dim, spacedim>::active_cell_iterator &cell)
   {
     Assert(triangulation != nullptr, ExcInternalError());
@@ -648,8 +648,8 @@ namespace Particles
   template <int dim, int spacedim>
   typename ParticleHandler<dim, spacedim>::particle_iterator
   ParticleHandler<dim, spacedim>::insert_particle(
-    const Point<spacedim>      &position,
-    const Point<dim>           &reference_position,
+    const Point<spacedim> &     position,
+    const Point<dim> &          reference_position,
     const types::particle_index particle_index,
     const typename Triangulation<dim, spacedim>::active_cell_iterator &cell,
     const ArrayView<const double> &properties)
@@ -764,8 +764,8 @@ namespace Particles
   ParticleHandler<dim, spacedim>::insert_global_particles(
     const std::vector<Point<spacedim>> &positions,
     const std::vector<std::vector<BoundingBox<spacedim>>>
-                                             &global_bounding_boxes,
-    const std::vector<std::vector<double>>   &properties,
+      &                                       global_bounding_boxes,
+    const std::vector<std::vector<double>> &  properties,
     const std::vector<types::particle_index> &ids)
   {
     if (!properties.empty())
@@ -1190,7 +1190,7 @@ namespace Particles
     compare_particle_association(
       const unsigned int                 a,
       const unsigned int                 b,
-      const Tensor<1, dim>              &particle_direction,
+      const Tensor<1, dim> &             particle_direction,
       const std::vector<Tensor<1, dim>> &center_directions)
     {
       const double scalar_product_a = center_directions[a] * particle_direction;
@@ -1567,7 +1567,8 @@ namespace Particles
             std::set<unsigned int> cell_to_neighbor_subdomain;
             for (const unsigned int v : cell->vertex_indices())
               {
-                const auto vertex_ghost_neighbors = vertices_with_ghost_neighbors.find(cell->vertex_index(v));
+                const auto vertex_ghost_neighbors =
+                  vertices_with_ghost_neighbors.find(cell->vertex_index(v));
                 if (vertex_ghost_neighbors !=
                     vertices_with_ghost_neighbors.end())
                   {
@@ -1650,7 +1651,7 @@ namespace Particles
     const std::map<
       types::subdomain_id,
       std::vector<typename Triangulation<dim, spacedim>::active_cell_iterator>>
-              &send_cells,
+      &        send_cells,
     const bool build_cache)
   {
     Assert(triangulation != nullptr, ExcInternalError());
@@ -2054,7 +2055,7 @@ namespace Particles
   template <int dim, int spacedim>
   void
   ParticleHandler<dim, spacedim>::register_additional_store_load_functions(
-    const std::function<std::size_t()>                             &size_callb,
+    const std::function<std::size_t()> &                            size_callb,
     const std::function<void *(const particle_iterator &, void *)> &store_callb,
     const std::function<const void *(const particle_iterator &, const void *)>
       &load_callb)
@@ -2184,7 +2185,7 @@ namespace Particles
     const auto callback_function =
       [this](
         const typename Triangulation<dim, spacedim>::cell_iterator
-                                                               &cell_iterator,
+          &                                                     cell_iterator,
         const typename Triangulation<dim, spacedim>::CellStatus cell_status) {
         return this->pack_callback(cell_iterator, cell_status);
       };
@@ -2341,7 +2342,7 @@ namespace Particles
   template <int dim, int spacedim>
   void
   ParticleHandler<dim, spacedim>::unpack_callback(
-    const typename Triangulation<dim, spacedim>::cell_iterator     &cell,
+    const typename Triangulation<dim, spacedim>::cell_iterator &    cell,
     const typename Triangulation<dim, spacedim>::CellStatus         status,
     const boost::iterator_range<std::vector<char>::const_iterator> &data_range)
   {
@@ -2375,12 +2376,14 @@ namespace Particles
     // now update particle storage location and properties if necessary
     switch (status)
       {
-          case parallel::TriangulationBase<dim, spacedim>::CELL_PERSIST: {
+        case parallel::TriangulationBase<dim, spacedim>::CELL_PERSIST:
+          {
             // all particles are correctly inserted
           }
           break;
 
-          case parallel::TriangulationBase<dim, spacedim>::CELL_COARSEN: {
+        case parallel::TriangulationBase<dim, spacedim>::CELL_COARSEN:
+          {
             // all particles are in correct cell, but their reference location
             // has changed
             for (auto &particle : loaded_particles_on_cell)
@@ -2393,7 +2396,8 @@ namespace Particles
           }
           break;
 
-          case parallel::TriangulationBase<dim, spacedim>::CELL_REFINE: {
+        case parallel::TriangulationBase<dim, spacedim>::CELL_REFINE:
+          {
             // we need to find the correct child to store the particles and
             // their reference location has changed
             typename particle_container::iterator &cache =

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.