Skip to content
Snippets Groups Projects
Commit 2aaf4029 authored by podlesny's avatar podlesny
Browse files

set dirichlet data for dirichlet body correctly

parent 1e6afbde
No related branches found
No related tags found
No related merge requests found
...@@ -159,8 +159,9 @@ template <class VectorTEMPLATE, class ScalarVectorTEMPLATE> class ProgramState { ...@@ -159,8 +159,9 @@ template <class VectorTEMPLATE, class ScalarVectorTEMPLATE> class ProgramState {
const auto& body = *contactNetwork.body(i); const auto& body = *contactNetwork.body(i);
if (body.data()->getYoungModulus() == 0.0) { if (body.data()->getYoungModulus() == 0.0) {
for (; dof<body.nVertices(); dof++) { for (size_t j=0; j<body.nVertices(); j++) {
dirichletNodes[dof] = true; dirichletNodes[dof] = true;
dof++;
} }
} else { } else {
dof += body.nVertices(); dof += body.nVertices();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment