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

updated lowrankoperatortest to latest changes in LowRankOperator

[[Imported from SVN: r5485]]
parent bce95bfd
Branches
Tags
No related merge requests found
......@@ -134,6 +134,18 @@ bool check()
break;
}
lr_op.mmv(x,b);
for (size_t i=0; i<b.size(); ++i)
if (b[i].two_norm()>1e-12)
{
std::cout << "LowRankOperator::mmv does not yield correct result. Difference = " << (b[i] - ref_vec[i]).two_norm() << std::endl;
passed = false;
for (size_t j=0; j<b.size(); ++j)
std::cout << b[j] << std::endl;
std::cout << std::endl;
break;
}
b=1.0;
lr_op.mv(x,b);
for (size_t i=0; i<b.size(); ++i)
......@@ -158,7 +170,7 @@ bool check()
break;
}
LowRankFactorType lr_factor_reborn = lr_op.getLowRankFactor();
LowRankFactorType lr_factor_reborn = lr_op.lowRankFactor();
if (passed)
std::cout << "passed";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment