← Back to team overview

dolfin team mailing list archive

Re: Arrays and pyDOLFIN

 

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 <gnw20@xxxxxxxxx>:
>
>
> 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
>
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
>


Follow ups

References