Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export_to_vtk fails with Dolfin 2017.1.0 #163

Open
ahellander opened this issue May 30, 2017 · 1 comment
Open

export_to_vtk fails with Dolfin 2017.1.0 #163

ahellander opened this issue May 30, 2017 · 1 comment
Assignees
Labels
Milestone

Comments

@ahellander
Copy link
Owner

Traceback (most recent call last):
File "simple_diffusion.py", line 37, in
result.export_to_vtk("A", "output")
File "/home/ubuntu/pyurdme/pyurdme/pyurdme.py", line 1753, in export_to_vtk
fd = dolfin.File(os.path.join(folder_name, "trajectory.xdmf").encode('ascii', 'ignore'))
File "/usr/lib/python2.7/dist-packages/dolfin/cpp/io.py", line 551, in init
_io.File_swiginit(self, _io.new_File(*args))
RuntimeError:

*** -------------------------------------------------------------------------
*** DOLFIN encountered an error. If you are not able to resolve this issue
*** using the information listed below, you can ask for help at


*** [email protected]


*** Remember to include the error message listed below and, if possible,
*** include a minimal running example to reproduce the error.


*** -------------------------------------------------------------------------
*** Error: Unable to open file.
*** Reason: Unknown file type (".xdmf") for file "output/trajectory.xdmf".
*** Where: This error was encountered inside File.cpp.
*** Process: 0


*** DOLFIN version: 2017.1.0
*** Git changeset: unknown
*** -------------------------------------------------------------------------

@ahellander ahellander self-assigned this May 30, 2017
@ahellander ahellander added the bug label May 30, 2017
@ahellander ahellander added this to the 1.2.0 milestone May 30, 2017
@ahellander
Copy link
Owner Author

This is due to a docuemented change in the Dolfin interface, from ChangeLog:


Remove XDMF from File interface. XDMF is XML based, and has many possibilities for file access, which are not accessible through the limited File interface and “<<” “>>” operators. Instead of File, use XDMFFile, and use XDMFFile.read() and XDMFFile.write() for I/O. Demos and tests have been updated to show usage. XDMF now also supports ASCII I/O in serial, useful for compatibility with users who do not have the HDF5 library available.

ahellander pushed a commit that referenced this issue May 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant