On 8 March 2012 22:53, Garth N. Wells <gn...@cam.ac.uk> wrote:
> The only proper solution that I see is that a user is responsible for making 
> sure that the size is right and that the function do no resizing. The change 
> is a half-way house, so I think that it should be reverted. The old code was 
> safe, and the proper, efficient alternative is that no resizing be done.

Is it the resize-if-zero you object to, or the
error-if-incorrect-size? The former is just convenience, but I can't
really see why it's unsafe. The latter is not generally sufficient in
parallel, but it is consistent with all the other global-size checks
(for b, and in vector::axpy, etc).

-j.

_______________________________________________
Mailing list: https://launchpad.net/~dolfin
Post to     : dolfin@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dolfin
More help   : https://help.launchpad.net/ListHelp

Reply via email to