Commit 91b6cd9f authored by Mark Hoemmen's avatar Mark Hoemmen
Browse files

Ifpack2: Fix #792 (build warnings in some tests)

Build/Test Cases Summary
Enabled Packages: Ifpack2
Disabled Packages: FEI,PyTrilinos,Moertel,STK,SEACAS,ThreadPool,OptiPack,Rythmos,Intrepid,ROL,Panzer
0) MPI_DEBUG => Test case MPI_DEBUG was not run! => Does not affect push readiness! (-1.00 min)
1) SERIAL_RELEASE => Test case SERIAL_RELEASE was not run! => Does not affect push readiness! (-1.00 min)
2) MPI_DEBUG => passed: passed=32,notpassed=0 (1.38 min)
3) SERIAL_RELEASE => passed: passed=28,notpassed=0 (0.70 min)
parent a2d61d9a
......@@ -82,7 +82,7 @@ TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL(Ifpack2Amesos2Wrapper, Test0, Scalar, LO, GO)
typedef typename mv_type::impl_scalar_type val_type;
typedef typename Kokkos::Details::ArithTraits<val_type>::mag_type mag_type;
typedef typename map_type::device_type device_type;
const mag_type oneMag = ArithTraits<mag_type>::one ();
// const mag_type oneMag = ArithTraits<mag_type>::one (); // unused
out << "Ifpack2 Amesos2 wrapper: Test0" << endl;
Teuchos::OSTab tab1 (out);
......
......@@ -863,7 +863,7 @@ testArrowMatrixWithDense (bool& success, Teuchos::FancyOStream& out, const LO lc
// Test the resulting vector c
for (LO i = 0; i + 1 < lclNumRows; ++i) {
const val_type K = static_cast<val_type> (static_cast<mag_type> (i+1));
const val_type c_i_unscaled_expected = K;
// const val_type c_i_unscaled_expected = K; // unused
const val_type c_i_expected = scalingFactor * K;
TEST_EQUALITY( c(i), c_i_expected );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment