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

Do not use the word 'rods' in variable names. This code is not restricted to rods anymore

[[Imported from SVN: r7365]]
parent 75bc27d4
No related branches found
No related tags found
No related merge requests found
...@@ -412,17 +412,17 @@ void RiemannianTrustRegionSolver<GridType,TargetSpace>::solve() ...@@ -412,17 +412,17 @@ void RiemannianTrustRegionSolver<GridType,TargetSpace>::solve()
if (instrumented_) { if (instrumented_) {
char iRodFilename[100]; char iFilename[100];
sprintf(iRodFilename, "tmp/intermediateSolution_%04d", i); sprintf(iFilename, "tmp/intermediateSolution_%04d", i);
FILE* fpRod = fopen(iRodFilename, "wb"); FILE* fpIterate = fopen(iFilename, "wb");
if (!fpRod) if (!fpIterate)
DUNE_THROW(SolverError, "Couldn't open file " << iRodFilename << " for writing"); DUNE_THROW(SolverError, "Couldn't open file " << iFilename << " for writing");
for (int j=0; j<x_.size(); j++) for (int j=0; j<x_.size(); j++)
fwrite(&x_[j], sizeof(TargetSpace), 1, fpRod); fwrite(&x_[j], sizeof(TargetSpace), 1, fpIterate);
fclose(fpRod); fclose(fpIterate);
} }
std::cout << "iteration took " << totalTimer.elapsed() << " sec." << std::endl; std::cout << "iteration took " << totalTimer.elapsed() << " sec." << std::endl;
......
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