From: wolf Date: Wed, 16 Jun 2004 18:52:00 +0000 (+0000) Subject: Make some argument references. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=938dc5fe92b079d58c34909707e92fdcaef82fb4;p=dealii-svn.git Make some argument references. git-svn-id: https://svn.dealii.org/trunk@9429 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/petsc_parallel_sparse_matrix.h b/deal.II/lac/include/lac/petsc_parallel_sparse_matrix.h index 1bf16725b6..38c49463cf 100644 --- a/deal.II/lac/include/lac/petsc_parallel_sparse_matrix.h +++ b/deal.II/lac/include/lac/petsc_parallel_sparse_matrix.h @@ -280,8 +280,8 @@ namespace PETScWrappers */ SparseMatrix (const MPI_Comm &communicator, const CompressedSparsityPattern &sparsity_pattern, - const std::vector local_rows_per_process, - const std::vector local_columns_per_process, + const std::vector &local_rows_per_process, + const std::vector &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 local_rows_per_process, - const std::vector local_columns_per_process, + const std::vector &local_rows_per_process, + const std::vector &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 local_rows_per_process, - const std::vector local_columns_per_process, + const std::vector &local_rows_per_process, + const std::vector &local_columns_per_process, const unsigned int this_process, const bool preset_nonzero_locations); }; diff --git a/deal.II/lac/source/petsc_parallel_sparse_matrix.cc b/deal.II/lac/source/petsc_parallel_sparse_matrix.cc index f7de1dac7b..12ccbe177e 100644 --- a/deal.II/lac/source/petsc_parallel_sparse_matrix.cc +++ b/deal.II/lac/source/petsc_parallel_sparse_matrix.cc @@ -72,8 +72,8 @@ namespace PETScWrappers SparseMatrix:: SparseMatrix (const MPI_Comm &communicator, const CompressedSparsityPattern &sparsity_pattern, - const std::vector local_rows_per_process, - const std::vector local_columns_per_process, + const std::vector &local_rows_per_process, + const std::vector &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 local_rows_per_process, - const std::vector local_columns_per_process, + const std::vector &local_rows_per_process, + const std::vector &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 local_rows_per_process, - const std::vector local_columns_per_process, + const std::vector &local_rows_per_process, + const std::vector &local_columns_per_process, const unsigned int this_process, const bool preset_nonzero_locations) {