dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #15298
Re: Wrapping of double**
On Thu, Sep 10, 2009 at 11:01:33PM +0200, Marie Rognes wrote:
> Anders Logg wrote:
> > On Thu, Sep 10, 2009 at 10:54:35AM +0200, Johan Hake wrote:
> >
> >> On Wednesday 09 September 2009 22:49:29 Anders Logg wrote:
> >>
> >>> Is double** wrapped correctly to Python? I'm trying to call
> >>> DofMap::tabulate_coordinates:
> >>>
> >>> void tabulate_coordinates(double** coordinates, const Cell& cell) const;
> >>>
> >>> As the first argument, I'm sending
> >>>
> >>> cell_coordinates = numpy.zeros((n, d))
> >>>
> >>> The error I get is
> >>>
> >>> *** glibc detected *** python: free(): invalid next size (fast):
> >>> 0x0000000002a07a60 ***
> >>>
> >> Should be fixed now. The typemap only worked for mxm blocks.
> >>
> >
> > Seems to work! I'll remove my temporary fix.
> >
> >
>
> Any time soon? ;)
I think I did. It should be in the following changeset:
changeset: 7006:b742c90c8255
user: Anders Logg <logg@xxxxxxxxx>
date: Thu Sep 10 14:01:39 2009 +0200
files: dolfin/fem/DofMap.cpp dolfin/fem/DofMap.h
dolfin/parameter/GlobalParameters.h
description:
Make destructor in GlobalParameters virtual.
--
Anders
Attachment:
signature.asc
Description: Digital signature
Follow ups
References