Skip to content
Snippets Groups Projects
Commit 6f9d00ab authored by Elias Pipping's avatar Elias Pipping Committed by pipping
Browse files

Fix warnings: signed/unsigned, init order

[[Imported from SVN: r11827]]
parent 71ab141a
Branches
Tags
No related merge requests found
...@@ -43,7 +43,7 @@ void CGSolver<MatrixType, VectorType>::solve() ...@@ -43,7 +43,7 @@ void CGSolver<MatrixType, VectorType>::solve()
std::cout << "-----"; std::cout << "-----";
std::cout << "---------------"; std::cout << "---------------";
std::cout << "---------"; std::cout << "---------";
for(int i=0; i<header.size(); ++i) for(size_t i=0; i<header.size(); ++i)
std::cout << "-"; std::cout << "-";
std::cout << std::endl; std::cout << std::endl;
} }
......
...@@ -48,7 +48,7 @@ void TruncatedCGSolver<MatrixType, VectorType>::solve() ...@@ -48,7 +48,7 @@ void TruncatedCGSolver<MatrixType, VectorType>::solve()
std::cout << "-----"; std::cout << "-----";
std::cout << "---------------"; std::cout << "---------------";
std::cout << "---------"; std::cout << "---------";
for(int i=0; i<header.size(); ++i) for(size_t i=0; i<header.size(); ++i)
std::cout << "-"; std::cout << "-";
std::cout << std::endl; std::cout << std::endl;
} }
......
...@@ -69,8 +69,8 @@ public: ...@@ -69,8 +69,8 @@ public:
matrix_(matrix), x_(x), rhs_(rhs), matrix_(matrix), x_(x), rhs_(rhs),
preconditioner_(preconditioner), preconditioner_(preconditioner),
errorNorm_(errorNorm), errorNorm_(errorNorm),
trustRegionNormMatrix_(trustRegionNormMatrix), trustRegionRadius_(trustRegionRadius),
trustRegionRadius_(trustRegionRadius) trustRegionNormMatrix_(trustRegionNormMatrix)
{} {}
/** \brief Constructor for repeated calls. The actual problem has to be provided separately */ /** \brief Constructor for repeated calls. The actual problem has to be provided separately */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment