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

__builtin__error

0 votes

Hello

I started to use Fenics last one month and everything was ok. But suddenly i have this error that i can not use Fenics anymore;

In [12]: run d1_p2D.py

NameError Traceback (most recent call last)
/usr/lib/python2.7/dist-packages/IPython/utils/py3compat.pyc in execfile(fname, *where)
176 else:
177 filename = fname
--> 178 builtin.execfile(filename, *where)

/home/burakates/Documents/Fenics/examples-1.0/stationary/poisson/d1_p2D.py in ()
11
12 # Create mesh and define function space
---> 13 mesh = UnitSquare(6, 4)
14 #mesh = UnitCube(6, 4, 5)
15 V = FunctionSpace(mesh, 'Lagrange', 1)

NameError: name 'UnitSquare' is not defined

I will be appreciate if you give some advice. (i have same error when i try other fenics program also)

Thanks

asked Jun 19, 2014 by BA FEniCS Novice (240 points)

1 Answer

0 votes

Try replacing UnitSquare with UnitSquareMesh (see the answer to this question).

answered Jun 19, 2014 by Maximilian Albert FEniCS User (1,750 points)
...