Skip to content
Snippets Groups Projects
Commit 33c56c6d authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

bugfix: the Dirichlet values in the continuum correction problem are all zero

[[Imported from SVN: r6928]]
parent 92bf8226
No related branches found
No related tags found
No related merge requests found
......@@ -816,8 +816,10 @@ linearizedContinuumNeumannToDirichletMap(const std::string& continuumName,
dynamic_cast<IterationStep<VectorType>* >(continuum(continuumName).solver_->iterationStep_)->ignoreNodes_
= &dirichletNodes;
// Solve the Neumann problem for the continuum
VectorType x = complex_.continuum(continuumName).dirichletValues_;
// Initial iterate is 0, all Dirichlet values are 0 (because we solve a correction problem
VectorType x(dirichletNodes.size());
x = 0;
assert( (dynamic_cast<LinearIterationStep<MatrixType,VectorType>* >(continuum(continuumName).solver_->iterationStep_)) );
dynamic_cast<LinearIterationStep<MatrixType,VectorType>* >(continuum(continuumName).solver_->iterationStep_)->setProblem(stiffnessMatrix, x, rhs);
......
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