export dolfin vector computed in parallel
Asked by
Doug Arnold
Sometimes you want to export a solution computed in dolfin in order to process it further with other tools. For example, the FEniCS tutorial describes how to use scipy.io.savemat to export the array of a FEniCS Matrix or Vector into a file which can be read into Matlab or octave for further processing.
My question is how to do this if one is using dolfin *in parallel*. Thus one computes, e.g., a FEniCS Function u and would like to export the associated array to a file that could be read by other programs. I tried
File("u.xml") << u.vector()
for this, and it produces an xml file for a vector of the correct size, but the entries of the vector are not in an order that I know how to interpret.
Can anyone suggest a way to do this?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Anders Logg
- Solved:
- Last query:
- Last reply:
To post a message you must log in.