← Back to team overview

dolfin team mailing list archive

Re: Built-in meshes.

 

Quoting Victor Prosolin <flyaway1212@xxxxxxxxx>:

> Nuno David Lopes wrote:
> > On Monday 13 October 2008, Anders Logg wrote:
> >> On Mon, Oct 13, 2008 at 03:43:46PM +0100, Nuno David Lopes wrote:
> >>> I will use Dolfin for  1D also,
> >>> there goes another tiny modification to the UnitInterval.h.cpp:
> >>> "Interval mesh(nx,a,b)";
> >>>
> >>> Hope it works.
> >> Looks like you forgot to add the Interval class.
> > 
> > Hope it works again...
> 
> Python demo poisson1D is broken now whereas the c++ one is fine. The
> error message is
> 
> Traceback (most recent call last):
>   File "demo.py", line 19, in <module>
>     from dolfin import *
>   File
> "/home/vip/programs/fenics/lib64/python2.5/site-packages/dolfin/__init__.py",
> line 46, in <module>
>     from dolfin import UnitInterval, Interval, UnitSquare, Rectangle,
> UnitCircle, UnitCube, Box, UnitSphere
> ImportError: cannot import name Interval

This should be fixed now.

Kristian
 
> Sincerely,
> Victor.
> 
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
> 




References