dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #16805
Re: [Branch ~dolfin-core/dolfin/main] Rev 4359: Resize vector if required in Function::compute_vertex_values.
On Tuesday 01 December 2009 11:46:06 Garth N. Wells wrote:
> Johan Hake wrote:
> > On Monday 30 November 2009 18:09:10 noreply@xxxxxxxxxxxxx wrote:
> >> ------------------------------------------------------------
> >> revno: 4359
> >> committer: Garth N. Wells <gnw20@xxxxxxxxx>
> >> branch nick: dolfin-dev
> >> timestamp: Tue 2009-12-01 01:51:06 +0000
> >> message:
> >> Resize vector if required in Function::compute_vertex_values.
> >> modified:
> >> dolfin/function/Function.cpp
> >
> > When is this required? This will break stuff on the typemap side of
> > things for now. We cannot, at least I couldn't figure out how to resize a
> > passed NumPy array.
>
> I can change the interface back to double* if necessary.
For now it would be nice. As we otherwise need to keep one of the typemaps I
added for the std::vector interface.
Johan
> Garth
>
> > For now I can put in a check if the vector has been resized, in the
> > typemap, just issuing an error if so. It will work for the plot function
> > in PyDOLFIN, which gets a NumPy array of the correct size.
> >
> > Johan
> >
> >> --
> >> lp:dolfin
> >> https://code.launchpad.net/~dolfin-core/dolfin/main
> >>
> >> Your team DOLFIN Core Team is subscribed to branch lp:dolfin.
> >> To unsubscribe from this branch go to
> >> https://code.launchpad.net/~dolfin-core/dolfin/main/+edit-subscription.
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~dolfin
> > Post to : dolfin@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~dolfin
> > More help : https://help.launchpad.net/ListHelp
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help : https://help.launchpad.net/ListHelp
>
References