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

remove unused code for scaled trust-regions

[[Imported from SVN: r4972]]
parent eafcefe2
No related branches found
No related tags found
No related merge requests found
...@@ -211,24 +211,6 @@ setupTCG(const GridType& grid, ...@@ -211,24 +211,6 @@ setupTCG(const GridType& grid,
operatorAssembler.assemble(massMatrixStiffness, *B); operatorAssembler.assemble(massMatrixStiffness, *B);
// /////////////////////////////////////////////////////////
// Scale rotational components
// /////////////////////////////////////////////////////////
#warning RigidBody-specific stuff hardwired into the RiemannianTRSolver!
int alpha = 1;
for (int i=0; i<B->N(); i++) {
// make matrix row an identity row
typename MatrixType::row_type::Iterator cIt = (*B)[i].begin();
typename MatrixType::row_type::Iterator cEndIt = (*B)[i].end();
for (; cIt!=cEndIt; ++cIt)
for (int j=0; j<3; j++)
(*cIt)[j][j] *= alpha;
}
// //////////////////////////////////////////////////// // ////////////////////////////////////////////////////
// Create a truncated conjugate gradient solver // Create a truncated conjugate gradient solver
// //////////////////////////////////////////////////// // ////////////////////////////////////////////////////
......
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