Skip to content
Snippets Groups Projects
Commit 2fb472f5 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Ignore the normalstress for non-frictional nodes

parent bcdc12f5
No related branches found
No related tags found
No related merge requests found
...@@ -316,10 +316,7 @@ ...@@ -316,10 +316,7 @@
<<computeGravitationalBodyForce>>; <<computeGravitationalBodyForce>>;
} }
SingletonVectorType surfaceNormalStress(finestSize); SingletonVectorType surfaceNormalStress(finestSize);
surfaceNormalStress = 0.0; surfaceNormalStress = normalStress;
for (size_t i = 0; i < frictionalNodes.size(); ++i)
if (frictionalNodes[i][0])
surfaceNormalStress[i] = normalStress;
MatrixType stiffnessMatrix; MatrixType stiffnessMatrix;
<<assembleStiffnessMatrix>>; <<assembleStiffnessMatrix>>;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment