← Back to team overview

dolfin team mailing list archive

Re: Problems with DofMap

 

On Thursday May 20 2010 11:20:55 Anders Logg wrote:
> 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.

It wasn't the first time no :) 

But it is nice with SWIG problems that is fixed with one line!

Johan



References