dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #18356
Re: Problems with DofMap
On Thu, May 20, 2010 at 11:03:07AM -0700, Johan Hake wrote:
> On Thursday May 20 2010 10:30:08 Anders Logg wrote:
> > I can't get DofMap to work with str() / info().
>
> You can now.
>
> > I keep getting this
> >
> > error message:
> > >>> dofmap.str(True)
> >
> > TypeError: in method 'Variable_str', argument 1 of type 'dolfin::Variable
> > const *'
> >
> > Is this a SWIG thing?
>
> O yes!
>
> All shared_ptr classes that is derived from Variable needs to be run with the
> macro IMPLEMENT_VARIABLE_INTERFACE in the shared_ptr_classes.i file. I did not
> know DofMap was derived from variable so I think this is the reason it was not
> already there.
>
> Johan
Thanks!
I keep forgetting about that... I've probably asked it more than once before.
--
Anders
Attachment:
signature.asc
Description: Digital signature
Follow ups
References