Skip to content
Snippets Groups Projects
Commit 9ab15b5c authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de
Browse files

Avoid signed/unsigned warning

parent a350ae20
Branches
No related tags found
No related merge requests found
Pipeline #31569 passed
...@@ -119,18 +119,18 @@ assembleGradientAndHessian(const VectorType& configuration, ...@@ -119,18 +119,18 @@ assembleGradientAndHessian(const VectorType& configuration,
Matrix<field_type> localHessian; Matrix<field_type> localHessian;
localHessian.setSize(size, size); localHessian.setSize(size, size);
for (int i=0; i<size; i++) for (size_t i=0; i<size; i++)
localConfiguration[i] = configurationBackend[ localView.index(i) ]; localConfiguration[i] = configurationBackend[ localView.index(i) ];
// setup local matrix and gradient // setup local matrix and gradient
localStiffness_->assembleGradientAndHessian(localView, localConfiguration, localGradient, localHessian); localStiffness_->assembleGradientAndHessian(localView, localConfiguration, localGradient, localHessian);
for(int i=0; i<size; i++) for (size_t i=0; i<size; i++)
{ {
auto row = localView.index(i); auto row = localView.index(i);
gradientBackend[row] += localGradient[i]; gradientBackend[row] += localGradient[i];
for (int j=0; j<size; j++ ) for (size_t j=0; j<size; j++ )
{ {
auto col = localView.index(j); auto col = localView.index(j);
// fufem ISTLBackend uses operator() for entry access // fufem ISTLBackend uses operator() for entry access
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment