Skip to content
Snippets Groups Projects
Commit 5dd12933 authored by Elias Pipping's avatar Elias Pipping
Browse files

Tests: fix logic

parent 6104ff04
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -29,7 +29,7 @@ public: ...@@ -29,7 +29,7 @@ public:
SolverResult solverResult, double t, std::string testCase) { SolverResult solverResult, double t, std::string testCase) {
const auto twoNormDiff = p_.twoNorm.diff(p_.u_ex, candidate); const auto twoNormDiff = p_.twoNorm.diff(p_.u_ex, candidate);
printf("%f | %3zu | %0f | %11g | %s\n", t, solverResult.iterations, printf("%f | %3zu | %0f | %11g | %s\n", t, solverResult.iterations,
std::pow(solverResult.conv_rate, 1.0/solverResult.iterations), std::pow(solverResult.conv_rate, 1.0/(1+solverResult.iterations)),
twoNormDiff, testCase.c_str()); twoNormDiff, testCase.c_str());
if (twoNormDiff > tolerance_) { if (twoNormDiff > tolerance_) {
std::cerr << "### Error too large for solver \"" << testCase << "\"." std::cerr << "### Error too large for solver \"" << testCase << "\"."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment