]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Pass by const reference instead of const value. 7535/head
authorDavid Wells <drwells@email.unc.edu>
Sun, 16 Dec 2018 22:13:07 +0000 (17:13 -0500)
committerDavid Wells <drwells@email.unc.edu>
Sun, 16 Dec 2018 22:39:28 +0000 (17:39 -0500)
Caught by coverity.

examples/step-28/step-28.cc

index a7e4d6b35da5be6469948831160b80389bf087ec..f0e6b763e3d224d97eee9e0d6a4c660b3ee01493 100644 (file)
@@ -517,7 +517,7 @@ namespace Step28
       const EnergyGroup<dim> &                       g_prime,
       const typename DoFHandler<dim>::cell_iterator &cell_g,
       const typename DoFHandler<dim>::cell_iterator &cell_g_prime,
-      const FullMatrix<double>                       prolongation_matrix);
+      const FullMatrix<double> &                     prolongation_matrix);
   };
 
 
@@ -849,7 +849,7 @@ namespace Step28
     const EnergyGroup<dim> &                       g_prime,
     const typename DoFHandler<dim>::cell_iterator &cell_g,
     const typename DoFHandler<dim>::cell_iterator &cell_g_prime,
-    const FullMatrix<double>                       prolongation_matrix)
+    const FullMatrix<double> &                     prolongation_matrix)
   {
     // The first case is that both cells are no further refined. In that case,
     // we can assemble the relevant terms (see the introduction). This

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.