Skip to content

Commit

Permalink
Merge pull request #15177 from bangerth/const
Browse files Browse the repository at this point in the history
Make some variables in a few tests 'const'.
  • Loading branch information
peterrum committed May 8, 2023
2 parents 23a51bc + ff92bd1 commit 30cea31
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/sundials/kinsol_01.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion tests/sundials/kinsol_02.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tests/sundials/kinsol_03.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion tests/sundials/kinsol_03_new_interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion tests/sundials/kinsol_04.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion tests/sundials/kinsol_04_new_interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion tests/sundials/kinsol_05.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ main()


// Size of the problem
unsigned int N = 2;
const unsigned int N = 2;

SUNDIALS::KINSOL<VectorType> kinsol(data);

Expand Down
2 changes: 1 addition & 1 deletion tests/sundials/kinsol_05_new_interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ main()


// Size of the problem
unsigned int N = 2;
const unsigned int N = 2;

SUNDIALS::KINSOL<VectorType> kinsol(data);

Expand Down

0 comments on commit 30cea31

Please sign in to comment.