From 6769764303ae3c5fa5594590af70c912d9486dc4 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 19 Apr 2023 18:53:16 -0600 Subject: [PATCH] Mark input arguments as 'const'. --- tests/sundials/n_vector.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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); -- 2.39.5