Thanks for your fast respose. I will try the SVN version.

Eugen 
On Thu, 2007-01-11 at 12:39 +0100, julien pommier wrote:
> Hi Eugen,
> You are right, this is a problem that I did not notice when we switched 
> from numeric to numarray: the python numarray library does not support 
> arrays of python objects, and since your mesh contains more than one 
> convex structure, you have a problem. I just commited a fix to the 
> getfem_python.c file:
> 
> http://svn.gna.org/viewcvs/getfem/trunk/getfem_matlab/src/python/getfem_python.c?rev=2509&r1=2318&r2=2509
> 
> So now arrays of getfem objects are just returned as regular python 
> lists of getfem objects.
> 
> --
> Julien
> 
> 
> Eugen Wintersberger wrote:
> > Hi there
> > I have just started with getfem and have some problems with getting the
> > convex structures in a mesh. I use therefore the cvstruct method of the
> > mesh class. However as the command sequence below shows there is some
> > type problem with numarray (at least I think so). Does anyone have an
> > idea what I do wrong? I use IPython on an AMD64 Ubuntu Edgy Eft
> > installation.
> >
> > best regards
> > Eugen
> >
> > In [151]: x = mesh.cvstruct()
> > ---------------------------------------------------------------------------
> > exceptions.TypeError                                 Traceback (most recent 
> > call last)
> >
> > /home/eugen/src/getfemtest/<ipython console> 
> >
> > /home/eugen/apps/inst/lib/python2.4/site-packages/getfem/getfem.py in 
> > cvstruct(self, CVLST)
> >     333 listed once in CVS, and CV2STRUC maps the convexes indice in CVLST 
> > to the
> >     334 indice of its structure in CVS."""
> > --> 335         return self.get("cvstruct", CVLST)
> >     336 
> >     337 
> >
> > /home/eugen/apps/inst/lib/python2.4/site-packages/getfem/getfem.py in 
> > get(self, *args)
> >     118         generic_destructor(self,destructible=True)
> >     119     def get(self, *args):
> > --> 120         return getfem('mesh_get',self.id, *args)
> >     121     def set(self, *args):
> >     122         return getfem('mesh_set',self.id, *args)
> >
> > TypeError: NA_DescrFromType: unknown type: 14
> >
> > In [152]: 
> >
> >
> >
> > _______________________________________________
> > Getfem-users mailing list
> > [email protected]
> > https://mail.gna.org/listinfo/getfem-users
> >   
> 
> 


_______________________________________________
Getfem-users mailing list
[email protected]
https://mail.gna.org/listinfo/getfem-users

Reply via email to