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

[Algorit] Use a reasonable initial iterate, not 0

This was only a temporary workaround for problems that no longer exist.
parent 317c39af
Branches
No related tags found
No related merge requests found
......@@ -70,8 +70,7 @@ void BackwardEuler<Vector, Matrix, Function, dim>::setup(
Arithmetic::subtractProduct(rhs, A, u_o);
}
// v_o makes a good initial iterate; we could use anything, though
iterate = 0.0;
iterate = v_o;
for (size_t i = 0; i < dirichletNodes.size(); ++i)
for (size_t j = 0; j < dim; ++j)
......
......@@ -80,8 +80,7 @@ void Newmark<Vector, Matrix, Function, dim>::setup(Vector const &ell,
Arithmetic::subtractProduct(rhs, A, u_o);
}
// v_o makes a good initial iterate; we could use anything, though
iterate = 0.0;
iterate = v_o;
for (size_t i = 0; i < dirichletNodes.size(); ++i)
for (size_t j = 0; j < dim; ++j)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment