]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make some variables 'const'. 15177/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 3 May 2023 00:30:44 +0000 (18:30 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 4 May 2023 23:39:24 +0000 (17:39 -0600)
tests/sundials/kinsol_01.cc
tests/sundials/kinsol_02.cc
tests/sundials/kinsol_03.cc
tests/sundials/kinsol_03_new_interface.cc
tests/sundials/kinsol_04.cc
tests/sundials/kinsol_04_new_interface.cc
tests/sundials/kinsol_05.cc
tests/sundials/kinsol_05_new_interface.cc

index 9224bdf42332fd7a118210e6cf31a015bee05292..c37bfbadc3912a994600fb74c1eb5237c51bfb95 100644 (file)
@@ -54,7 +54,7 @@ main()
   prm.parse_input(ifile);
 
   // Size of the problem
-  unsigned int N = 3;
+  const unsigned int N = 3;
 
   SUNDIALS::KINSOL<VectorType> kinsol(data);
 
index 5c8574a767c69c1d3534d5b9e58335540d83c477..aff1da527e5bea7d8051549f26da20ddd483ca38 100644 (file)
@@ -42,7 +42,7 @@ main()
   using VectorType = Vector<double>;
 
   // Size of the problem
-  unsigned int N = 2;
+  const unsigned int N = 2;
 
   FullMatrix<double> L(N, N);
   L(0, 0) = 1;
index e90968e733aae1b4b6ec512d0f37a23d37c1ba82..4cea5a5f41523927bf2320a954c08442f88a91a8 100644 (file)
@@ -59,7 +59,7 @@ main()
   prm.parse_input(ifile);
 
   // Size of the problem
-  unsigned int N = 2;
+  const unsigned int N = 2;
 
   SUNDIALS::KINSOL<VectorType> kinsol(data);
 
index 11ab7f3c502ab29168fa5ee88763741bd1a390d3..58911e5e4016f400e1f7efa0d9c6ac538fa5bd68 100644 (file)
@@ -59,7 +59,7 @@ main()
   prm.parse_input(ifile);
 
   // Size of the problem
-  unsigned int N = 2;
+  const unsigned int N = 2;
 
   SUNDIALS::KINSOL<VectorType> kinsol(data);
 
index a499ad1afc9f27d30221a39826a7922a2ee09776..91a0fa26e505832651d7eaaa54e26ba4a031161a 100644 (file)
@@ -71,7 +71,7 @@ main()
   prm.parse_input(ifile);
 
   // Size of the problem
-  unsigned int N = 2;
+  const unsigned int N = 2;
 
   SUNDIALS::KINSOL<VectorType> kinsol(data);
 
index f4435d791180b33234097f77c84c44d1e2d59b92..3d61f26d8bb1805413ac2f5483a48c00d3f10963 100644 (file)
@@ -71,7 +71,7 @@ main()
   prm.parse_input(ifile);
 
   // Size of the problem
-  unsigned int N = 2;
+  const unsigned int N = 2;
 
   SUNDIALS::KINSOL<VectorType> kinsol(data);
 
index 9e8f2046e5da7e218269937bc268c7edf03aff61..8eab8f99e8b884c2bb8dbb5a347dbf02fbd844f0 100644 (file)
@@ -69,7 +69,7 @@ main()
 
 
   // Size of the problem
-  unsigned int N = 2;
+  const unsigned int N = 2;
 
   SUNDIALS::KINSOL<VectorType> kinsol(data);
 
index 09d40c03c76abaa50980985b1e2ed4aea2dd65d0..7a5308c03a0836d2c37f6d09017bfb6612fa806e 100644 (file)
@@ -69,7 +69,7 @@ main()
 
 
   // Size of the problem
-  unsigned int N = 2;
+  const unsigned int N = 2;
 
   SUNDIALS::KINSOL<VectorType> kinsol(data);
 

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.