dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #21160
Re: Missing Hierarchical interface in Python
On Tue, Feb 01, 2011 at 12:31:28PM -0800, Johan Hake wrote:
> On Tuesday February 1 2011 12:23:10 Anders Logg wrote:
> > The Hierarchical interface seems to be missing in Python. I can't do
> >
> > mesh.has_child()
> > mesh.child()
> > etc
>
> I can:
>
> In [1]: from dolfin import *
>
> In [2]: mesh = UnitCube(8, 8, 8)
>
> In [3]: V = FunctionSpace(mesh, 'CG', 1)
>
> In [4]: V.has_child()
> Out[4]: False
>
> In [5]: mesh.has_child()
> Out[5]: True
>
> Seams a bit silly that mesh should have a child though...
Why? Isn't that natural that if a mesh has been refined, then it has a
child mesh. And the refined mesh has a parent.
> What SWIG version do you have.
1.3.40
--
Anders
Follow ups
References