[snip] > > Well, sending a numpy array to a Function is quite intuitive for > > initialize a discrete function, at least for first timers that is used to > > numpy and Python. And the result Evan got was definetly not a nice error > > for this guess. > > The problem with this is that then one expects that when the Function > is modified, then the array will be modified and vice versa. It won't > since a Vector will be created with copied data.
I see this, and then it is maybee not a good idea to do this. But a first timer is not aware of this, but should be able to get this information from e.g. a docstring. Johan _______________________________________________ DOLFIN-dev mailing list [email protected] http://www.fenics.org/mailman/listinfo/dolfin-dev
