]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Addresses Peter comments on default value of vector, order of comments and fixes... 10422/head
authorblaisb <blais.bruno@gmail.com>
Sat, 30 May 2020 18:39:39 +0000 (14:39 -0400)
committerblaisb <blais.bruno@gmail.com>
Sat, 30 May 2020 18:39:39 +0000 (14:39 -0400)
include/deal.II/particles/generators.h

index bd3887a7c299e3d553d6be6b42ae25fd6c04e39a..9aee2b96b33889f1df3a63e8c4a01a340fc37ee1 100644 (file)
@@ -194,12 +194,12 @@ namespace Particles
      * @param[in] mapping An optional mapping object that is used to map
      * the DOF locations. If no mapping is provided a MappingQ1 is assumed.
      *
-     * @param[in] properties An optional vector of vector of properties
-     * for each particles to be inserted.
-     *
      * @param[in] components Component mask that decides which subset of the
      * support points of the dof_handler are used to generate the particles.
      *
+     * @param[in] properties An optional vector of vector of properties
+     * for each particle to be inserted.
+     *
      * @author Bruno Blais, Luca Heltai, 2019
      */
     template <int dim, int spacedim = dim>
@@ -211,8 +211,7 @@ namespace Particles
                        const Mapping<dim, spacedim> &  mapping =
                          StaticMappingQ1<dim, spacedim>::mapping,
                        const ComponentMask &components = ComponentMask(),
-                       const std::vector<std::vector<double>> &properties =
-                         std::vector<std::vector<double>>());
+                       const std::vector<std::vector<double>> &properties = {});
 
     /**
      * A function that generates particles at the locations of the quadrature
@@ -243,7 +242,7 @@ namespace Particles
      * assumed.
      *
      * @param[in] properties An optional vector of vector of properties
-     * for each particles to be inserted.
+     * for each particle to be inserted.
      *
      * @author Bruno Blais, Luca Heltai, 2019
      */
@@ -256,8 +255,7 @@ namespace Particles
                       ParticleHandler<dim, spacedim> &particle_handler,
                       const Mapping<dim, spacedim> &  mapping =
                         StaticMappingQ1<dim, spacedim>::mapping,
-                      const std::vector<std::vector<double>> &properties =
-                        std::vector<std::vector<double>>());
+                      const std::vector<std::vector<double>> &properties = {});
   } // namespace Generators
 } // namespace Particles
 

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.