← Back to team overview

dolfin team mailing list archive

Re: Arrays and pyDOLFIN

 



Garth N. Wells wrote:
How do I pass a Python list to a c++ function that expects an Array?

I would like to pass a list of Dirichlet boundary conditions to an assemble function that expects an Array<DirichletBC*>& object.


I suspect the problem is that pyDOLFIN provides it's own DirichletBC class (which is derived from the C++ version), which is why I can't insert DirichletBCs into an Array<DirichletBC*>& object. Suggestions on how to do this?

Garth


Garth
_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev



Follow ups

References