Johan Hake wrote: > On Monday 30 November 2009 18:09:10 [email protected] wrote: >> ------------------------------------------------------------ >> revno: 4359 >> committer: Garth N. Wells <[email protected]> >> 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. 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 : [email protected] > Unsubscribe : https://launchpad.net/~dolfin > More help : https://help.launchpad.net/ListHelp _______________________________________________ Mailing list: https://launchpad.net/~dolfin Post to : [email protected] Unsubscribe : https://launchpad.net/~dolfin More help : https://help.launchpad.net/ListHelp

