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

write rods for debugging

[[Imported from SVN: r4129]]
parent a824203f
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include "src/rodassembler.hh" #include "src/rodassembler.hh"
#include "src/riemanniantrsolver.hh" #include "src/riemanniantrsolver.hh"
#include "src/rodrefine.hh" #include "src/rodrefine.hh"
#include "src/rodwriter.hh"
typedef Dune::OneDGrid GridType; typedef Dune::OneDGrid GridType;
...@@ -191,6 +192,10 @@ int main (int argc, char *argv[]) try ...@@ -191,6 +192,10 @@ int main (int argc, char *argv[]) try
for (int j=i; j<numLevels; j++) for (int j=i; j<numLevels; j++)
globalRodRefine(grid, solution); globalRodRefine(grid, solution);
std::stringstream numberAsAscii;
numberAsAscii << i;
writeRod(solution, "rodGrid_" + numberAsAscii.str());
assert(referenceSolution.size() == solution.size()); assert(referenceSolution.size() == solution.size());
// Compute max-norm difference // Compute max-norm difference
......
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