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

[Algorit] Initial iterate: 0

If we use the old velocity, it can happen that we hit the kernel of
the singular norm component
parent 3c6f43be
No related branches found
No related tags found
No related merge requests found
...@@ -139,7 +139,7 @@ void Newmark<VectorType, MatrixType, FunctionType, dim>::setup( ...@@ -139,7 +139,7 @@ void Newmark<VectorType, MatrixType, FunctionType, dim>::setup(
Arithmetic::addProduct(problem_AB, 2.0 / tau, B); Arithmetic::addProduct(problem_AB, 2.0 / tau, B);
// v_old makes a good initial iterate; we could use anything, though // v_old makes a good initial iterate; we could use anything, though
problem_iterate = v_old; problem_iterate = 0.0;
for (size_t i = 0; i < dirichletNodes.size(); ++i) for (size_t i = 0; i < dirichletNodes.size(); ++i)
switch (dirichletNodes[i].count()) { switch (dirichletNodes[i].count()) {
......
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