Skip to content

Commit

Permalink
Make some variables 'const'.
Browse files Browse the repository at this point in the history
  • Loading branch information
bangerth committed May 4, 2023
1 parent d62c94c commit ff92bd1
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 ff92bd1

Please sign in to comment.