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

Collision demo can not read xml-file

0 votes

Hi

I am trying to use the demo_collision-detection.py file from the demos, but when I run it I get the error: "Unable to read data from XML-file"
Reason: "Unable to open file "/circle.xml.gz"
This second file is part of the demo and lies in the same folder as the python file. Could anyone help me understand why this error pops up?

Thanks in advance.

asked Jan 26, 2017 by haakon555 FEniCS Novice (330 points)

1 Answer

0 votes

Remove the / and it should work:

mesh_B = Mesh("circle.xml.gz")
answered Jan 26, 2017 by johannr FEniCS Expert (17,350 points)

Thank you, it seems to be working now.

...