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

bugfix: properly set matrix and rhs sizes

[[Imported from SVN: r5541]]
parent b3613c0d
No related branches found
No related tags found
No related merge requests found
...@@ -67,11 +67,11 @@ void TargetSpaceRiemannianTRSolver<TargetSpace>::solve() ...@@ -67,11 +67,11 @@ void TargetSpaceRiemannianTRSolver<TargetSpace>::solve()
std::cout << "----------------------------------------------------" << std::endl; std::cout << "----------------------------------------------------" << std::endl;
} }
CorrectionType rhs; CorrectionType rhs(1); // length is 1 _block_
CorrectionType corr(1); // length is 1 _block_ CorrectionType corr(1); // length is 1 _block_
corr = 0; corr = 0;
MatrixType hesseMatrix; MatrixType hesseMatrix(1,1);
assembler_->assembleGradient(x_, rhs[0]); assembler_->assembleGradient(x_, rhs[0]);
assembler_->assembleMatrix(x_, hesseMatrix[0][0]); assembler_->assembleMatrix(x_, hesseMatrix[0][0]);
......
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