mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-15 07:43:27 -06:00
avoid dead stores
This commit is contained in:
parent
e5c29c768d
commit
5e801bc488
@ -44,7 +44,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(CUJACApplyBlocksize2, T, NumericTypes)
|
||||
| |0 0| | 0 -1| | | |4| | | |-2.0| |
|
||||
*/
|
||||
const int N = 2;
|
||||
const int blocksize = 2;
|
||||
constexpr int blocksize = 2;
|
||||
const int nonZeroes = 3;
|
||||
using M = Dune::FieldMatrix<T, blocksize, blocksize>;
|
||||
using SpMatrix = Dune::BCRSMatrix<M>;
|
||||
@ -98,7 +98,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(CUJACApplyBlocksize1, T, NumericTypes)
|
||||
| 0 0 0 -1| |1| | -2|
|
||||
*/
|
||||
const int N = 4;
|
||||
const int blocksize = 1;
|
||||
constexpr int blocksize = 1;
|
||||
const int nonZeroes = 8;
|
||||
using M = Dune::FieldMatrix<T, blocksize, blocksize>;
|
||||
using SpMatrix = Dune::BCRSMatrix<M>;
|
||||
@ -145,4 +145,4 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(CUJACApplyBlocksize1, T, NumericTypes)
|
||||
BOOST_CHECK_CLOSE(vVector[1], expectedAns[1], 1e-7);
|
||||
BOOST_CHECK_CLOSE(vVector[2], expectedAns[2], 1e-7);
|
||||
BOOST_CHECK_CLOSE(vVector[3], expectedAns[3], 1e-7);
|
||||
}
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(SeqDILUDiagIsCorrect2x2NoZeros, T, NumericTypes)
|
||||
*/
|
||||
|
||||
const int N = 2;
|
||||
const int bz = 2;
|
||||
constexpr int bz = 2;
|
||||
const int nonZeroes = 4;
|
||||
using Matrix = Dune::BCRSMatrix<Dune::FieldMatrix<double, bz, bz>>;
|
||||
using Vector = Dune::BlockVector<Dune::FieldVector<double, bz>>;
|
||||
@ -109,7 +109,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(SeqDILUDiagIsCorrect2x2, T, NumericTypes)
|
||||
*/
|
||||
|
||||
const int N = 2;
|
||||
const int bz = 2;
|
||||
constexpr int bz = 2;
|
||||
const int nonZeroes = 3;
|
||||
using Matrix = Dune::BCRSMatrix<Dune::FieldMatrix<double, bz, bz>>;
|
||||
using Vector = Dune::BlockVector<Dune::FieldVector<double, bz>>;
|
||||
@ -785,4 +785,4 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(SeqDILUApplyIsEqualToDuneSeqILUApply, T, NumericTy
|
||||
BOOST_CHECK_CLOSE(dilu_x[i][j], ilu_x[i][j], 1e-7);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user