From 05c56a54744b0352d381728223eb6a90a58fe293 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Wed, 8 Aug 2007 09:31:30 +0000 Subject: [PATCH] avoid some compiler warnings [[Imported from SVN: r1494]] --- src/rodassembler.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/rodassembler.cc b/src/rodassembler.cc index f5ad3832..071949b7 100644 --- a/src/rodassembler.cc +++ b/src/rodassembler.cc @@ -102,8 +102,6 @@ getLocalMatrix( EntityPointer &entity, const std::vector<Configuration>& globalSolution, const int matSize, MatrixType& localMat) const { - const typename GridType::Traits::LevelIndexSet& indexSet = grid_->levelIndexSet(grid_->maxLevel()); - /* ndof is the number of vectors of the element */ int ndof = matSize; @@ -579,7 +577,7 @@ computeEnergy(const std::vector<Configuration>& sol) const const QuadratureRule<double, gridDim>& shearingQuad = QuadratureRules<double, gridDim>::rule(it->geometry().type(), shearingPolOrd); - for (int pt=0; pt<shearingQuad.size(); pt++) { + for (size_t pt=0; pt<shearingQuad.size(); pt++) { // Local position of the quadrature point const FieldVector<double,gridDim>& quadPos = shearingQuad[pt].position(); @@ -603,7 +601,7 @@ computeEnergy(const std::vector<Configuration>& sol) const const int polOrd = 2; const QuadratureRule<double, gridDim>& bendingQuad = QuadratureRules<double, gridDim>::rule(it->geometry().type(), polOrd); - for (int pt=0; pt<bendingQuad.size(); pt++) { + for (size_t pt=0; pt<bendingQuad.size(); pt++) { // Local position of the quadrature point const FieldVector<double,gridDim>& quadPos = bendingQuad[pt].position(); -- GitLab