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

compute gradient analytically and not be fd approximation

[[Imported from SVN: r1711]]
parent 78c0907a
No related branches found
No related tags found
No related merge requests found
......@@ -230,8 +230,7 @@ void RodSolver<GridType>::solve()
if (this->verbosity_ == FULL)
std::cout << "Rod energy: " <<rodAssembler_->computeEnergy(x_) << std::endl;
//rodAssembler_->assembleGradient(x_, rhs);
rodAssembler_->assembleGradientFD(x_, rhs);
rodAssembler_->assembleGradient(x_, rhs);
//rodAssembler_->assembleMatrix(x_, *hessianMatrix_);
rodAssembler_->assembleMatrixFD(x_, *hessianMatrix_);
......
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