From 44f9bf38d2b0b0f1dd519a23ca6d82fc213c0ed8 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Sat, 21 Mar 2015 11:33:52 +0000 Subject: [PATCH] Avoid signed/unsigned warnings [[Imported from SVN: r10099]] --- dune/gfe/localadolcstiffness.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dune/gfe/localadolcstiffness.hh b/dune/gfe/localadolcstiffness.hh index 87db444f..bb52b5e3 100644 --- a/dune/gfe/localadolcstiffness.hh +++ b/dune/gfe/localadolcstiffness.hh @@ -147,8 +147,8 @@ assembleGradientAndHessian(const Entity& element, std::fill(v.begin(), v.end(), 0.0); - for (int i=0; i<nDofs; i++) - for (int ii=0; ii<blocksize; ii++) + for (size_t i=0; i<nDofs; i++) + for (size_t ii=0; ii<blocksize; ii++) { // Evaluate Hessian in the direction of each vector of the orthonormal frame for (size_t k=0; k<blocksize; k++) @@ -159,7 +159,7 @@ assembleGradientAndHessian(const Entity& element, if (rc < 0) DUNE_THROW(Dune::Exception, "ADOL-C has returned with error code " << rc << "!"); - for (int j=0; j<nDoubles; j++) + for (size_t j=0; j<nDoubles; j++) this->A_[i][j/blocksize][ii][j%blocksize] = w[j]; // Make v the null vector again -- GitLab