Skip to content
Snippets Groups Projects
Commit 56cf2746 authored by Peter Gottschling's avatar Peter Gottschling
Browse files

Setzt AMDiS den x-Wert vor dem Loesen???

parent 51eecacb
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#ifndef AMDIS_ITL_OEM_SOLVER_H #ifndef AMDIS_ITL_OEM_SOLVER_H
#define AMDIS_ITL_OEM_SOLVER_H #define AMDIS_ITL_OEM_SOLVER_H
#include <iostream>
#include "OEMSolver.h" #include "OEMSolver.h"
#include "ITL_Preconditioner.h" #include "ITL_Preconditioner.h"
#include "SolverMatrix.h" #include "SolverMatrix.h"
...@@ -63,6 +64,15 @@ namespace AMDiS { ...@@ -63,6 +64,15 @@ namespace AMDiS {
{ {
itl::cyclic_iteration<value_type> iter(b, this->max_iter, this->relative, itl::cyclic_iteration<value_type> iter(b, this->max_iter, this->relative,
this->tolerance, this->print_cycle); this->tolerance, this->print_cycle);
#if 0
std::cout << "A is " << num_rows(A) << " x " << num_cols(A)
<< ", one_norm(A) = " << one_norm(A)
<< ", b is " << num_rows(b)
<< ", one_norm(b) = " << one_norm(b)
<< ", x is " << num_rows(x)
<< ", one_norm(x) = " << one_norm(x) << "\n";
x= 0.0;
#endif
return ITLSolver()(A, x, b, *this->leftPrecon, *this->rightPrecon, iter); return ITLSolver()(A, x, b, *this->leftPrecon, *this->rightPrecon, iter);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment