This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

exporting .xml

–4 votes

What if the following does not work?

File('saved_u.xml') << u

Is there another way how to export solution?

closed with the note: Not a well formulated question.
asked Jun 21, 2013 by littlemeat FEniCS Novice (100 points)
closed Jun 21, 2013 by Garth N. Wells

Yes, there is. There are many output formats but only XML and XDMF can be read.

What error message is raised by File('saved_u.xml') << u?

Solved already, sorry. My problem was I was trying to export the solution, not the projected version of it. This worked.

h_proj = project(h, spaceT)
hfile << h_proj
...