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

print energy and trust-region radius at each iteration

[[Imported from SVN: r5679]]
parent 26f98571
No related branches found
No related tags found
No related merge requests found
......@@ -241,10 +241,11 @@ int main (int argc, char *argv[]) try
// /////////////////////////////////////////////////////
for (int i=0; i<maxNewtonSteps; i++) {
std::cout << "----------------------------------------------------" << std::endl;
std::cout << " Trust-Region Step Number: " << i << std::endl;
std::cout << "----------------------------------------------------" << std::endl;
std::cout << "-----------------------------------------------------------------------------" << std::endl;
std::cout << " Trust-Region Step Number: " << i
<< ", radius: " << trustRegionRadius
<< ", energy: " << rodAssembler.computeEnergy(x) << std::endl;
std::cout << "-----------------------------------------------------------------------------" << std::endl;
rhs = 0;
corr = 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