Skip to content
Snippets Groups Projects
Commit 3943252c authored by Uli Sack's avatar Uli Sack Committed by usack
Browse files

minor change: take the matrix plugged into the SumOperator to compare N(),...

minor change: take the matrix plugged into the SumOperator to compare N(), instead of the member of the SumOperator

[[Imported from SVN: r5944]]
parent f32fc727
No related branches found
No related tags found
No related merge requests found
...@@ -150,12 +150,12 @@ bool check() ...@@ -150,12 +150,12 @@ bool check()
/* test for consistency of return value of N() */ /* test for consistency of return value of N() */
if (sum_op.N() != sum_op.sparseMatrix().N()) if (sum_op.N() != sparse_matrix.N())
{ {
std::cout << "SumOperator::N does not return correct value for the SumOperator constructed from given matrices. (returns " << sum_op.N() << ", should return " << sum_op.sparseMatrix().N() << ")" << std::endl; std::cout << "SumOperator::N does not return correct value for the SumOperator constructed from given matrices. (returns " << sum_op.N() << ", should return " << sum_op.sparseMatrix().N() << ")" << std::endl;
passed = false; passed = false;
} }
if (sum_op_default.N() != sum_op_default.sparseMatrix().N()) if (sum_op_default.N() !=sparse_matrix.N())
{ {
std::cout << "SumOperator::N does not return correct value for the default-constructed SumOperator." << std::endl; std::cout << "SumOperator::N does not return correct value for the default-constructed SumOperator." << std::endl;
passed = false; passed = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment