From: Bruno Blais Date: Fri, 18 Nov 2022 21:15:00 +0000 (-0500) Subject: Fix indentation X-Git-Tag: v9.5.0-rc1~830^2~12 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0edc498d0b08aac6bb1c2c3920042b8607ca171f;p=dealii.git Fix indentation --- diff --git a/include/deal.II/grid/grid_tools_cache.h b/include/deal.II/grid/grid_tools_cache.h index 3b7e27fb30..6d0a3e4392 100644 --- a/include/deal.II/grid/grid_tools_cache.h +++ b/include/deal.II/grid/grid_tools_cache.h @@ -75,7 +75,7 @@ namespace GridTools * @param mapping The mapping to use when computing cached objects */ Cache(const Triangulation &tria, - const Mapping &mapping = + const Mapping & mapping = (ReferenceCells::get_hypercube() #ifndef _MSC_VER .template get_default_linear_mapping() diff --git a/source/grid/grid_tools_cache.cc b/source/grid/grid_tools_cache.cc index 801df23fb1..0b8762b4a8 100644 --- a/source/grid/grid_tools_cache.cc +++ b/source/grid/grid_tools_cache.cc @@ -26,7 +26,7 @@ namespace GridTools { template Cache::Cache(const Triangulation &tria, - const Mapping &mapping) + const Mapping & mapping) : update_flags(update_all) , tria(&tria) , mapping(&mapping) diff --git a/source/particles/particle_handler.cc b/source/particles/particle_handler.cc index a7d54914e9..8092da7f19 100644 --- a/source/particles/particle_handler.cc +++ b/source/particles/particle_handler.cc @@ -77,7 +77,7 @@ namespace Particles template ParticleHandler::ParticleHandler( const Triangulation &triangulation, - const Mapping &mapping, + const Mapping & mapping, const unsigned int n_properties) : triangulation(&triangulation, typeid(*this).name()) , mapping(&mapping, typeid(*this).name()) @@ -117,7 +117,7 @@ namespace Particles void ParticleHandler::initialize( const Triangulation &new_triangulation, - const Mapping &new_mapping, + const Mapping & new_mapping, const unsigned int n_properties) { clear(); @@ -577,7 +577,7 @@ namespace Particles template typename ParticleHandler::particle_iterator ParticleHandler::insert_particle( - const Particle &particle, + const Particle & particle, const typename Triangulation::active_cell_iterator &cell) { return insert_particle(particle.get_location(), @@ -623,7 +623,7 @@ namespace Particles template typename ParticleHandler::particle_iterator ParticleHandler::insert_particle( - const void *&data, + const void *& data, const typename Triangulation::active_cell_iterator &cell) { Assert(triangulation != nullptr, ExcInternalError()); @@ -648,8 +648,8 @@ namespace Particles template typename ParticleHandler::particle_iterator ParticleHandler::insert_particle( - const Point &position, - const Point &reference_position, + const Point & position, + const Point & reference_position, const types::particle_index particle_index, const typename Triangulation::active_cell_iterator &cell, const ArrayView &properties) @@ -764,8 +764,8 @@ namespace Particles ParticleHandler::insert_global_particles( const std::vector> &positions, const std::vector>> - &global_bounding_boxes, - const std::vector> &properties, + & global_bounding_boxes, + const std::vector> & properties, const std::vector &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> ¢er_directions) { const double scalar_product_a = center_directions[a] * particle_direction; @@ -1669,7 +1669,7 @@ namespace Particles const std::map< types::subdomain_id, std::vector::active_cell_iterator>> - &send_cells, + & send_cells, const bool build_cache) { Assert(triangulation != nullptr, ExcInternalError()); @@ -2073,7 +2073,7 @@ namespace Particles template void ParticleHandler::register_additional_store_load_functions( - const std::function &size_callb, + const std::function & size_callb, const std::function &store_callb, const std::function &load_callb) @@ -2203,7 +2203,7 @@ namespace Particles const auto callback_function = [this]( const typename Triangulation::cell_iterator - &cell_iterator, + & cell_iterator, const typename Triangulation::CellStatus cell_status) { return this->pack_callback(cell_iterator, cell_status); }; @@ -2360,7 +2360,7 @@ namespace Particles template void ParticleHandler::unpack_callback( - const typename Triangulation::cell_iterator &cell, + const typename Triangulation::cell_iterator & cell, const typename Triangulation::CellStatus status, const boost::iterator_range::const_iterator> &data_range) { @@ -2394,12 +2394,14 @@ namespace Particles // now update particle storage location and properties if necessary switch (status) { - case parallel::TriangulationBase::CELL_PERSIST: { + case parallel::TriangulationBase::CELL_PERSIST: + { // all particles are correctly inserted } break; - case parallel::TriangulationBase::CELL_COARSEN: { + case parallel::TriangulationBase::CELL_COARSEN: + { // all particles are in correct cell, but their reference location // has changed for (auto &particle : loaded_particles_on_cell) @@ -2412,7 +2414,8 @@ namespace Particles } break; - case parallel::TriangulationBase::CELL_REFINE: { + case parallel::TriangulationBase::CELL_REFINE: + { // we need to find the correct child to store the particles and // their reference location has changed typename particle_container::iterator &cache =