From 7423a10f4ecdb7fa7e2e4a4bd3d7c49d819bac88 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Thu, 11 Aug 2011 12:44:52 +0000 Subject: [PATCH] also write the reference result to disk [[Imported from SVN: r7572]] --- harmonicmaps-eoc.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/harmonicmaps-eoc.cc b/harmonicmaps-eoc.cc index 761d5fc1..67317965 100644 --- a/harmonicmaps-eoc.cc +++ b/harmonicmaps-eoc.cc @@ -189,6 +189,15 @@ int main (int argc, char *argv[]) try SolutionType referenceSolution; solve(referenceGrid, referenceSolution, numLevels, parameterSet); + BlockVector<FieldVector<double,3> > xEmbedded(referenceSolution.size()); + for (int j=0; j<referenceSolution.size(); j++) + xEmbedded[j] = referenceSolution[j].globalCoordinates(); + + LeafAmiraMeshWriter<GridType> amiramesh; + amiramesh.addGrid(referenceGrid->leafView()); + amiramesh.addVertexData(xEmbedded, referenceGrid->leafView()); + amiramesh.write("reference_result.am"); + // ////////////////////////////////////////////////////////////////////// // Compute mass matrix and laplace matrix to emulate L2 and H1 norms // ////////////////////////////////////////////////////////////////////// -- GitLab