On Wed, Mar 04, 2009 at 10:15:17PM +0100, Harish Narayanan wrote: > Anders Logg wrote: > > On Wed, Mar 04, 2009 at 10:06:05PM +0100, Harish Narayanan wrote: > >> Is it possible to extract components of a DirichletBC in Python? (i.e. > >> its FunctionSpace, value and boundary to which it is applied) > >> > >> I'd like to do something like > >> > >> for every bc in bcset1 > >> create element of bcset2 with > >> the same function space and at the same boundary, but > >> having different boundary value value. > >> > >> Thanks, > >> Harish > > > > No, but it would be very easy (and appropriate) to add. > > > > The FunctionSpace reference needs to be returned from the base class > > (BoundaryCondition) and the Function reference needs to be returned > > from DirichletBC. > > > > Can you submit a patch or do you need me to do it? > > I will try this. (Need to get over the Python apprehension.)
It's just C++. If all goes well, just add it to the C++ classes and then it might magically appear in Python. -- Anders
signature.asc
Description: Digital signature
_______________________________________________ DOLFIN-dev mailing list [email protected] http://www.fenics.org/mailman/listinfo/dolfin-dev
