From ff92bd1c012a751b3d529a5ad341d6b3084dec92 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 2 May 2023 18:30:44 -0600 Subject: [PATCH] Make some variables 'const'. --- tests/sundials/kinsol_01.cc | 2 +- tests/sundials/kinsol_02.cc | 2 +- tests/sundials/kinsol_03.cc | 2 +- tests/sundials/kinsol_03_new_interface.cc | 2 +- tests/sundials/kinsol_04.cc | 2 +- tests/sundials/kinsol_04_new_interface.cc | 2 +- tests/sundials/kinsol_05.cc | 2 +- tests/sundials/kinsol_05_new_interface.cc | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/sundials/kinsol_01.cc b/tests/sundials/kinsol_01.cc index 9224bdf423..c37bfbadc3 100644 --- a/tests/sundials/kinsol_01.cc +++ b/tests/sundials/kinsol_01.cc @@ -54,7 +54,7 @@ main() prm.parse_input(ifile); // Size of the problem - unsigned int N = 3; + const unsigned int N = 3; SUNDIALS::KINSOL kinsol(data); diff --git a/tests/sundials/kinsol_02.cc b/tests/sundials/kinsol_02.cc index 5c8574a767..aff1da527e 100644 --- a/tests/sundials/kinsol_02.cc +++ b/tests/sundials/kinsol_02.cc @@ -42,7 +42,7 @@ main() using VectorType = Vector; // Size of the problem - unsigned int N = 2; + const unsigned int N = 2; FullMatrix L(N, N); L(0, 0) = 1; diff --git a/tests/sundials/kinsol_03.cc b/tests/sundials/kinsol_03.cc index e90968e733..4cea5a5f41 100644 --- a/tests/sundials/kinsol_03.cc +++ b/tests/sundials/kinsol_03.cc @@ -59,7 +59,7 @@ main() prm.parse_input(ifile); // Size of the problem - unsigned int N = 2; + const unsigned int N = 2; SUNDIALS::KINSOL kinsol(data); diff --git a/tests/sundials/kinsol_03_new_interface.cc b/tests/sundials/kinsol_03_new_interface.cc index 11ab7f3c50..58911e5e40 100644 --- a/tests/sundials/kinsol_03_new_interface.cc +++ b/tests/sundials/kinsol_03_new_interface.cc @@ -59,7 +59,7 @@ main() prm.parse_input(ifile); // Size of the problem - unsigned int N = 2; + const unsigned int N = 2; SUNDIALS::KINSOL kinsol(data); diff --git a/tests/sundials/kinsol_04.cc b/tests/sundials/kinsol_04.cc index a499ad1afc..91a0fa26e5 100644 --- a/tests/sundials/kinsol_04.cc +++ b/tests/sundials/kinsol_04.cc @@ -71,7 +71,7 @@ main() prm.parse_input(ifile); // Size of the problem - unsigned int N = 2; + const unsigned int N = 2; SUNDIALS::KINSOL kinsol(data); diff --git a/tests/sundials/kinsol_04_new_interface.cc b/tests/sundials/kinsol_04_new_interface.cc index f4435d7911..3d61f26d8b 100644 --- a/tests/sundials/kinsol_04_new_interface.cc +++ b/tests/sundials/kinsol_04_new_interface.cc @@ -71,7 +71,7 @@ main() prm.parse_input(ifile); // Size of the problem - unsigned int N = 2; + const unsigned int N = 2; SUNDIALS::KINSOL kinsol(data); diff --git a/tests/sundials/kinsol_05.cc b/tests/sundials/kinsol_05.cc index 9e8f2046e5..8eab8f99e8 100644 --- a/tests/sundials/kinsol_05.cc +++ b/tests/sundials/kinsol_05.cc @@ -69,7 +69,7 @@ main() // Size of the problem - unsigned int N = 2; + const unsigned int N = 2; SUNDIALS::KINSOL kinsol(data); diff --git a/tests/sundials/kinsol_05_new_interface.cc b/tests/sundials/kinsol_05_new_interface.cc index 09d40c03c7..7a5308c03a 100644 --- a/tests/sundials/kinsol_05_new_interface.cc +++ b/tests/sundials/kinsol_05_new_interface.cc @@ -69,7 +69,7 @@ main() // Size of the problem - unsigned int N = 2; + const unsigned int N = 2; SUNDIALS::KINSOL kinsol(data); -- 2.39.5