On Wed, Jun 18, 2014 at 11:18 PM, burak ateş <[email protected]> wrote:
> 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 <module>()
>      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

Use UnitSquareMesh instead.

Johannes
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to