]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make some argument references.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 16 Jun 2004 18:52:00 +0000 (18:52 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 16 Jun 2004 18:52:00 +0000 (18:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@9429 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/petsc_parallel_sparse_matrix.h
deal.II/lac/source/petsc_parallel_sparse_matrix.cc

index 1bf16725b65dad9729f590f5de8a3dc8fb73df36..38c49463cfe78c20fd89b69fe1d6df7d97bac184 100644 (file)
@@ -280,8 +280,8 @@ namespace PETScWrappers
                                           */
         SparseMatrix (const MPI_Comm                  &communicator,
                       const CompressedSparsityPattern &sparsity_pattern,
-                      const std::vector<unsigned int>  local_rows_per_process,
-                      const std::vector<unsigned int>  local_columns_per_process,
+                      const std::vector<unsigned int> &local_rows_per_process,
+                      const std::vector<unsigned int> &local_columns_per_process,
                       const unsigned int               this_process,
                       const bool                       preset_nonzero_locations = false);
 
@@ -387,8 +387,8 @@ namespace PETScWrappers
                                           */
         void reinit (const MPI_Comm                  &communicator,
                      const CompressedSparsityPattern &sparsity_pattern,
-                     const std::vector<unsigned int>  local_rows_per_process,
-                     const std::vector<unsigned int>  local_columns_per_process,
+                     const std::vector<unsigned int> &local_rows_per_process,
+                     const std::vector<unsigned int> &local_columns_per_process,
                      const unsigned int               this_process,
                      const bool                       preset_nonzero_locations = false);
         
@@ -451,8 +451,8 @@ namespace PETScWrappers
                                           * Same as previous functions.
                                           */
         void do_reinit (const CompressedSparsityPattern &sparsity_pattern,
-                        const std::vector<unsigned int>  local_rows_per_process,
-                        const std::vector<unsigned int>  local_columns_per_process,
+                        const std::vector<unsigned int> &local_rows_per_process,
+                        const std::vector<unsigned int> &local_columns_per_process,
                         const unsigned int               this_process,
                         const bool                       preset_nonzero_locations);
     };
index f7de1dac7b2dc66668797dfc0c901667f234797a..12ccbe177e13ad2658cce76fe74603b178630ada 100644 (file)
@@ -72,8 +72,8 @@ namespace PETScWrappers
     SparseMatrix::
     SparseMatrix (const MPI_Comm                  &communicator,
                   const CompressedSparsityPattern &sparsity_pattern,
-                  const std::vector<unsigned int>  local_rows_per_process,
-                  const std::vector<unsigned int>  local_columns_per_process,
+                  const std::vector<unsigned int> &local_rows_per_process,
+                  const std::vector<unsigned int> &local_columns_per_process,
                   const unsigned int               this_process,
                   const bool                       preset_nonzero_locations)
                     :
@@ -142,8 +142,8 @@ namespace PETScWrappers
     SparseMatrix::
     reinit (const MPI_Comm                  &communicator,
             const CompressedSparsityPattern &sparsity_pattern,
-            const std::vector<unsigned int>  local_rows_per_process,
-            const std::vector<unsigned int>  local_columns_per_process,
+            const std::vector<unsigned int> &local_rows_per_process,
+            const std::vector<unsigned int> &local_columns_per_process,
             const unsigned int               this_process,
             const bool                       preset_nonzero_locations)
     {
@@ -250,8 +250,8 @@ namespace PETScWrappers
     void
     SparseMatrix::
     do_reinit (const CompressedSparsityPattern &sparsity_pattern,
-               const std::vector<unsigned int>  local_rows_per_process,
-               const std::vector<unsigned int>  local_columns_per_process,
+               const std::vector<unsigned int> &local_rows_per_process,
+               const std::vector<unsigned int> &local_columns_per_process,
                const unsigned int               this_process,
                const bool                       preset_nonzero_locations)
     {

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.