Add an instantiation of Array<DirichletBC*> to the .i files beside ArrayFunctionPtr. An use cpp_DirichletBC. As you say, this is a problem with this "inheritance pattern".
-- Martin 2008/8/23 Garth N. Wells <[EMAIL PROTECTED]>: > > > 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 >> [email protected] >> http://www.fenics.org/mailman/listinfo/dolfin-dev > > _______________________________________________ > DOLFIN-dev mailing list > [email protected] > http://www.fenics.org/mailman/listinfo/dolfin-dev > _______________________________________________ DOLFIN-dev mailing list [email protected] http://www.fenics.org/mailman/listinfo/dolfin-dev
