Skip to content
Snippets Groups Projects
Commit bb1e1c42 authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

Use std::size_t instead of int

This avoids the following compiler warnings:

| .../dune-solvers/dune/solvers/iterationsteps/blockgsstep.cc:47:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
|          for (int i=0; i<this->x_->size(); i++)
| .../dune-solvers/dune/solvers/iterationsteps/blockgsstep.cc:51:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
|          for (int i=this->x_->size()-1; i>=0 && i<this->x_->size(); i--)
parent b1f3c9a6
No related branches found
No related tags found
No related merge requests found
...@@ -44,11 +44,11 @@ void BlockGSStep<MatrixType, DiscFuncType, BitVectorType>::iterate() ...@@ -44,11 +44,11 @@ void BlockGSStep<MatrixType, DiscFuncType, BitVectorType>::iterate()
assert(this->ignoreNodes_ != NULL); assert(this->ignoreNodes_ != NULL);
if (gs_type_ != Direction::BACKWARD) if (gs_type_ != Direction::BACKWARD)
for (int i=0; i<this->x_->size(); i++) for (std::size_t i=0; i<this->x_->size(); i++)
iterate_step(i); iterate_step(i);
if (gs_type_ != Direction::FORWARD) if (gs_type_ != Direction::FORWARD)
for (int i=this->x_->size()-1; i>=0 && i<this->x_->size(); i--) for (std::size_t i=this->x_->size()-1; i>=0 && i<this->x_->size(); i--)
iterate_step(i); iterate_step(i);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment