Skip to content
Snippets Groups Projects
Commit df85ac4b authored by Laura Stengel's avatar Laura Stengel
Browse files

started to fix KelvinVoigt damping

parent 0d790bdf
No related branches found
No related tags found
1 merge request!260i..
......@@ -91,7 +91,11 @@ NewmarkSolver::calculateResidualUpdate(const IElasticity &assemble, const Vector
void NewmarkSolver::calculateJacobiUpdate(const IElasticity &assemble, const Vector &u,
Matrix &J) const {
assemble.Jacobi(u, J);
if (solveViscoelastic) {
assemble.ViscoJacobi(u, *velocity, J);
} else {
assemble.Jacobi(u, J);
}
J += *residualMatrix;
J.ClearDirichletValues();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment