Skip to content
Snippets Groups Projects
Commit 5ff8460d authored by Oliver Sander's avatar Oliver Sander Committed by sander@PCPOOL.MI.FU-BERLIN.DE
Browse files

avoid various warnings

[[Imported from SVN: r3229]]
parent 90eb908f
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,7 @@ void BlockGSStep<OperatorType, DiscFuncType, BitVectorType>::iterate() ...@@ -38,7 +38,7 @@ void BlockGSStep<OperatorType, DiscFuncType, BitVectorType>::iterate()
{ {
const OperatorType& mat = *this->mat_; const OperatorType& mat = *this->mat_;
for (int i=0; i<this->x_->size(); i++) { for (size_t i=0; i<this->x_->size(); i++) {
/** \todo Handle more general boundary conditions */ /** \todo Handle more general boundary conditions */
if ((*this->ignoreNodes_)[i][0]) { if ((*this->ignoreNodes_)[i][0]) {
......
...@@ -15,7 +15,7 @@ void ProjectedBlockGSStep<OperatorType, DiscFuncType>::iterate() ...@@ -15,7 +15,7 @@ void ProjectedBlockGSStep<OperatorType, DiscFuncType>::iterate()
const OperatorType& mat = *this->mat_; const OperatorType& mat = *this->mat_;
for (int i=0; i<this->x_->size(); i++) { for (size_t i=0; i<this->x_->size(); i++) {
/** \todo Handle more general boundary conditions */ /** \todo Handle more general boundary conditions */
if ((*this->ignoreNodes_)[i][0]) if ((*this->ignoreNodes_)[i][0])
......
...@@ -8,7 +8,7 @@ DiscFuncType TrustRegionGSStep<OperatorType, DiscFuncType>::getSol() ...@@ -8,7 +8,7 @@ DiscFuncType TrustRegionGSStep<OperatorType, DiscFuncType>::getSol()
template<class OperatorType, class DiscFuncType> template<class OperatorType, class DiscFuncType>
inline inline
double TrustRegionGSStep<OperatorType, DiscFuncType>:: double TrustRegionGSStep<OperatorType, DiscFuncType>::
residual(int index, int blockIndex) const residual(unsigned int index, int blockIndex) const
{ {
const OperatorType& mat = *this->mat_; const OperatorType& mat = *this->mat_;
...@@ -53,7 +53,7 @@ void TrustRegionGSStep<OperatorType, DiscFuncType>::iterate() ...@@ -53,7 +53,7 @@ void TrustRegionGSStep<OperatorType, DiscFuncType>::iterate()
//std::cout << "----------------------------------\n"; //std::cout << "----------------------------------\n";
//double oldEnergy = computeEnergy(mat, *this->x_, *this->rhs_); //double oldEnergy = computeEnergy(mat, *this->x_, *this->rhs_);
for (int i=0; i<this->x_->size(); i++) { for (size_t i=0; i<this->x_->size(); i++) {
// scalar gauss-seidel // scalar gauss-seidel
for (int j=0; j<blocksize; j++) { for (int j=0; j<blocksize; j++) {
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
virtual DiscFuncType getSol(); virtual DiscFuncType getSol();
double residual(int index, int blockIndex) const; double residual(unsigned int index, int blockIndex) const;
}; };
......
...@@ -56,7 +56,7 @@ void ::LoopSolver<VectorType, BitVectorType>::solve() ...@@ -56,7 +56,7 @@ void ::LoopSolver<VectorType, BitVectorType>::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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment