]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Standardize notation: move reference & to the right.
authorRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 23 Apr 2004 07:47:19 +0000 (07:47 +0000)
committerRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 23 Apr 2004 07:47:19 +0000 (07:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@9096 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/multigrid/mg_dof_tools.h
deal.II/deal.II/source/multigrid/mg_dof_tools.cc

index 0cbb82b462ebe17d216107f56246025bc312c54e..fd12cf46e41eba2655cea0a844069577c8623b79 100644 (file)
@@ -111,8 +111,8 @@ class MGTools
     make_flux_sparsity_pattern (const MGDoFHandler<dim> &dof,
                                SparsityPattern       &sparsity,
                                const unsigned int level,
-                               const FullMatrix<double>int_mask,
-                               const FullMatrix<double>flux_mask);
+                               const FullMatrix<double> &int_mask,
+                               const FullMatrix<double> &flux_mask);
 
                                     /**
                                      * Count the dofs component-wise
@@ -125,8 +125,8 @@ class MGTools
                                      * <tt>result[level][component]</tt>).
                                      */
     template <int dim>
-      static void count_dofs_per_component (const MGDoFHandler<dim>mg_dof,
-                                           std::vector<std::vector<unsigned int> >result,
+      static void count_dofs_per_component (const MGDoFHandler<dim> &mg_dof,
+                                           std::vector<std::vector<unsigned int> > &result,
                                            std::vector<unsigned int> target_component
                                            = std::vector<unsigned int>());
     
@@ -141,8 +141,8 @@ class MGTools
                                      */
     template <int dim, typename number>
       static void
-      reinit_vector (const MGDoFHandler<dim>mg_dof,
-                    MGLevelObject<Vector<number> >vector);
+      reinit_vector (const MGDoFHandler<dim> &mg_dof,
+                    MGLevelObject<Vector<number> > &vector);
 
                                     /**
                                      * Adjust block-vectors on all
@@ -213,10 +213,10 @@ class MGTools
                                      */
     template <int dim, typename number>
       static void
-      reinit_vector (const MGDoFHandler<dim>mg_dof,
-                    MGLevelObject<Vector<number> >v,
-                    const std::vector<bool>selected,
-                    const std::vector<unsigned int>target_component);
+      reinit_vector (const MGDoFHandler<dim> &mg_dof,
+                    MGLevelObject<Vector<number> > &v,
+                    const std::vector<bool> &selected,
+                    const std::vector<unsigned int> &target_component);
 };
 
 
index 53d52c834e40a6c89f70c0866243bc2c6d485797..efffe1984c8525cc6f99f5122b31126aa59eef6a 100644 (file)
@@ -187,8 +187,8 @@ MGTools::make_flux_sparsity_pattern (
   const MGDoFHandler<dim> &dof,
   SparsityPattern       &sparsity,
   const unsigned int level,
-  const FullMatrix<double>int_mask,
-  const FullMatrix<double>flux_mask)
+  const FullMatrix<double> &int_mask,
+  const FullMatrix<double> &flux_mask)
 {
   const unsigned int n_dofs = dof.n_dofs(level);
   const unsigned int n_comp = dof.get_fe().n_components();
@@ -296,8 +296,8 @@ MGTools::make_flux_sparsity_pattern (
 template <int dim>
 void
 MGTools::count_dofs_per_component (
-  const MGDoFHandler<dim>dof_handler,
-  std::vector<std::vector<unsigned int> >result,
+  const MGDoFHandler<dim> &dof_handler,
+  std::vector<std::vector<unsigned int> > &result,
   std::vector<unsigned int> target_component)
 {
   const unsigned int nlevels = dof_handler.get_tria().n_levels();
@@ -375,8 +375,8 @@ MGTools::count_dofs_per_component (
 
 template<int dim, typename number>
 void
-MGTools::reinit_vector (const MGDoFHandler<dim>mg_dof,
-                       MGLevelObject<Vector<number> >v)
+MGTools::reinit_vector (const MGDoFHandler<dim> &mg_dof,
+                       MGLevelObject<Vector<number> > &v)
 {
   for (unsigned int level=v.get_minlevel();
        level<=v.get_maxlevel();++level)
@@ -390,8 +390,8 @@ MGTools::reinit_vector (const MGDoFHandler<dim>& mg_dof,
 
 template<int dim, typename number>
 void
-MGTools::reinit_vector (const MGDoFHandler<dim>mg_dof,
-                        MGLevelObject<BlockVector<number> >v,
+MGTools::reinit_vector (const MGDoFHandler<dim> &mg_dof,
+                        MGLevelObject<BlockVector<number> > &v,
                         const std::vector<bool> &sel,
                        const std::vector<unsigned int> &target_comp)
 {

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.