← Back to team overview

dolfin team mailing list archive

Re: GenericVector::set from Python

 

On Sun, Feb 28, 2010 at 05:17:47PM -0800, Johan Hake wrote:
> On Sunday 28 February 2010 00:15:52 Anders Logg wrote:
> > On Sat, Feb 27, 2010 at 10:07:28PM +0000, Garth N. Wells wrote:
> > > Is there a reason why GenericVector::set is excluded from the Python
> > > interface,
> > >
> > >     %ignore dolfin::GenericVector::set
> > >
> > > ? I need to be able to set values using a method which works in
> > > parallel.
> > >
> > > Garth
> >
> > I don't know. I've also been wondering about this. Try adding it back
> > and see what happens.
>
> I wasn't quite finished with the email...
>
> I decided to excluded it when I added the slicing interface. This was before
> all changes wrt to parallel DOLFIN was made. So I suppose it is just to add it
> back.
>
> What version of set do/did you need?
>
> However I remember that I have been able to use the slicing interface in
> parallel. But I do not recall why it worked, I think because it just uses
> set_local?

Yes. That seems a bit dangerous (but is useful in serial).

--
Anders

Attachment: signature.asc
Description: Digital signature


References