Hello,
I want to use L-shape mesh in the new release of FEniCS. I am using the command
mesh = Mesh("../lshape.xml.gz")
I received the following error message

Traceback (most recent call last):
  File "lshap.py", line 1, in <module>
    mesh = Mesh("../lshape.xml.gz")
NameError: name 'Mesh' is not defined
ammar@ubuntu:~/Downloads$ python lshap.py
Traceback (most recent call last):
  File "lshap.py", line 34, in <module>
    mesh = Mesh("../lshape.xml.gz")
  File "/usr/lib/python2.7/dist-packages/dolfin/mesh/meshes.py", line 68, in 
__init__
    cpp.Mesh.__cppinit__(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/dolfin/cpp/mesh.py", line 1572, in 
__init__
    _mesh.Mesh_swiginit(self,_mesh.new_Mesh(*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 read data from XML file.
*** Reason:  Unable to open file "../lshape.xml.gz".
*** Where:   This error was encountered inside XMLFile.cpp.
*** Process: 0
*** 
*** DOLFIN version: 1.3.0
*** Git changeset:  unknown
*** -------------------------------------------------------------------------




Best,

Ammar Harb
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics

Reply via email to