Should be fixed now! The returned by value array went out of scope. I had to copy it using new operator. So I guess there are some unnessesary copying there, but it is probably not a big deal as things returned by value should be small?
Johan On Wednesday August 11 2010 06:56:12 Anders Logg wrote: > Is the idea that OUT_NUMPY_TYPEMAP_FOR_DOLFIN_ARRAY should take care > of mapping all return values which are Arrays (at least for double, > int, uint)? > > I'm getting strange return values when calling TimeSeries::vector_times > from Python. > > The debugging code inside TimeSeries::vector_times prints > > 0: 0 > 1: 0.02 > 2: 0.04 > > while the NumPy array contains the values > > [ 6.35862486e-321 0.00000000e+000 4.74303020e-322] > > -- > Anders _______________________________________________ Mailing list: https://launchpad.net/~dolfin Post to : dolfin@lists.launchpad.net Unsubscribe : https://launchpad.net/~dolfin More help : https://help.launchpad.net/ListHelp