diff --git a/cosserat-continuum.cc b/cosserat-continuum.cc index 0a5e0c8c0cf351595ef12229d0757bb4b37b83fd..b30d51d1d6646650fb0a189e0f52a6276e57b759 100644 --- a/cosserat-continuum.cc +++ b/cosserat-continuum.cc @@ -332,9 +332,9 @@ int main (int argc, char *argv[]) try std::vector<FieldVector<double,3> > dV; Functions::interpolate(feBasis, dV, dirichletValues, dirichletDofs); - for (size_t i=0; i<x.size(); i++) - if (dirichletDofs[i][0]) - x[i].r = dV[i]; + for (size_t j=0; j<x.size(); j++) + if (dirichletDofs[j][0]) + x[j].r = dV[j]; // ///////////////////////////////////////////////////// // Solve!