Fixed unused variable warnings in test_milu

This commit is contained in:
Markus Blatt 2018-06-15 12:44:42 +02:00
parent e0a138e23c
commit 59b99d9ef9

View File

@ -75,7 +75,7 @@ void test_milu0(M& A)
#ifdef DEBUG #ifdef DEBUG
std::cout<<"index "<<i<<" size "<<diff.size()<<" difference"<<point_difference<<std::endl; std::cout<<"index "<<i<<" size "<<diff.size()<<" difference"<<point_difference<<std::endl;
#endif #endif
BOOST_ASSERT(point_difference < 1e-12); BOOST_CHECK(point_difference < 1e-12);
} }
// Test that (LU)^-1Ae=e // Test that (LU)^-1Ae=e
@ -86,8 +86,8 @@ void test_milu0(M& A)
for ( std::size_t i = 0, end = A.N(); i < end; ++i) for ( std::size_t i = 0, end = A.N(); i < end; ++i)
{ {
auto point_difference = diff[i].two_norm();
#ifdef DEBUG #ifdef DEBUG
auto point_difference = diff[i].two_norm();
std::cout<<"index "<<i<<" size "<<diff.size()<<" point_difference "<<point_difference<<std::endl; std::cout<<"index "<<i<<" size "<<diff.size()<<" point_difference "<<point_difference<<std::endl;
#endif #endif
BOOST_CHECK_CLOSE(x2[i].two_norm(), e[i].two_norm(), 1e-12); BOOST_CHECK_CLOSE(x2[i].two_norm(), e[i].two_norm(), 1e-12);