From: Wolfgang Bangerth Date: Thu, 20 Apr 2023 00:53:16 +0000 (-0600) Subject: Mark input arguments as 'const'. X-Git-Tag: v9.5.0-rc1~309^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6769764303ae3c5fa5594590af70c912d9486dc4;p=dealii.git Mark input arguments as 'const'. --- diff --git a/tests/sundials/n_vector.cc b/tests/sundials/n_vector.cc index 2c18911145..4cb04da272 100644 --- a/tests/sundials/n_vector.cc +++ b/tests/sundials/n_vector.cc @@ -77,13 +77,13 @@ namespace */ template VectorType - create_test_vector(double value = 0.0); + create_test_vector(const double value = 0.0); template <> Vector - create_test_vector(double value) + create_test_vector(const double value) { Vector vector(3 /*size*/); vector = value; @@ -94,7 +94,7 @@ namespace template <> BlockVector - create_test_vector(double value) + create_test_vector(const double value) { const int num_blocks = 2; const int size_block = 3; @@ -105,7 +105,7 @@ namespace template <> LinearAlgebra::distributed::Vector - create_test_vector(double value) + create_test_vector(const double value) { IndexSet local_dofs = create_parallel_index_set(); LinearAlgebra::distributed::Vector vector(local_dofs, @@ -116,7 +116,7 @@ namespace template <> LinearAlgebra::distributed::BlockVector - create_test_vector(double value) + create_test_vector(const double value) { const unsigned n_processes = Utilities::MPI::n_mpi_processes(MPI_COMM_WORLD); @@ -133,7 +133,7 @@ namespace template <> TrilinosWrappers::MPI::Vector - create_test_vector(double value) + create_test_vector(const double value) { IndexSet local_dofs = create_parallel_index_set(); @@ -144,7 +144,7 @@ namespace template <> TrilinosWrappers::MPI::BlockVector - create_test_vector(double value) + create_test_vector(const double value) { const unsigned n_processes = Utilities::MPI::n_mpi_processes(MPI_COMM_WORLD); @@ -159,7 +159,7 @@ namespace template <> PETScWrappers::MPI::Vector - create_test_vector(double value) + create_test_vector(const double value) { IndexSet local_dofs = create_parallel_index_set(); @@ -170,7 +170,7 @@ namespace template <> PETScWrappers::MPI::BlockVector - create_test_vector(double value) + create_test_vector(const double value) { const unsigned n_processes = Utilities::MPI::n_mpi_processes(MPI_COMM_WORLD);