Skip to content
Snippets Groups Projects
Commit ad857b46 authored by akbib's avatar akbib Committed by akbib
Browse files

Avoid warnings about comparsion of int/unsigned int

[[Imported from SVN: r12628]]
parent 5efc2be4
Branches
Tags
No related merge requests found
...@@ -571,14 +571,14 @@ assembleRightHandSide(const std::vector<DiscFuncType>& rhs, ...@@ -571,14 +571,14 @@ assembleRightHandSide(const std::vector<DiscFuncType>& rhs,
int idx = 0; int idx = 0;
for (int i=0; i<rhs.size(); i++) { for (size_t i=0; i<rhs.size(); i++) {
for (int j=0; j<rhs[i].size(); j++) for (size_t j=0; j<rhs[i].size(); j++)
untransformedTotalRhs[idx++] = rhs[i][j]; untransformedTotalRhs[idx++] = rhs[i][j];
} }
if (this->BT_.M() != idx) if ((int) this->BT_.M() != idx)
DUNE_THROW(Dune::Exception, "assembleRightHandSide: vector size and matrix size don't match!"); DUNE_THROW(Dune::Exception, "assembleRightHandSide: vector size and matrix size don't match!");
// Transform the basis of the ansatz space // Transform the basis of the ansatz space
...@@ -738,7 +738,7 @@ computeTransformationMatrix() ...@@ -738,7 +738,7 @@ computeTransformationMatrix()
MatrixIndexSet indicesBT(nRows, nCols); MatrixIndexSet indicesBT(nRows, nCols);
// BT_ is the identity plus some off-diagonal elements // BT_ is the identity plus some off-diagonal elements
for (int i=0; i<indicesBT.rows(); i++) for (size_t i=0; i<indicesBT.rows(); i++)
indicesBT.add(i,i); indicesBT.add(i,i);
// Enter all the off-diagonal entries // Enter all the off-diagonal entries
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment