← Back to team overview

dolfin team mailing list archive

Re: Problems with DofMap

 

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



Follow ups

References