Thanks, Vaclav!
All is working now as it was previously.
2010/4/16 Václav Šmilauer
> > This way is working, the previous one - not.
> Sorry, I don't understand which one is which now.
>
> In any case, it should work as you originally did (modifying the
> component in-place) now, without work
> This way is working, the previous one - not.
Sorry, I don't understand which one is which now.
In any case, it should work as you originally did (modifying the
component in-place) now, without workarounds.
v.
___
Mailing list: https://launchpad.net
Hi, Vaclav,
thanks for help.
v=O.bodies[2].state.vel
O.bodies[2].state.vel=(v[0],v[1],-4)
This way is working, the previous one - not.
2010/4/16 Václav Šmilauer
> > Is there any other way to change the velocity?
>
> v=O.bodies[2].state.vel
> O.bodies[2].state.vel=(v[0],v[1],-4)
>
> as workaro
V
> > Is there any other way to change the velocity?
Try with r2147 (and see commit log). I hope this was the ugliest code in
my life...
v
___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : http
Ok, thank you, Vaclav,
it works for me now.
__
Anton Gladkyy
2010/4/16 Václav Šmilauer
> > Is there any other way to change the velocity?
>
> v=O.bodies[2].state.vel
> O.bodies[2].state.vel=(v[0],v[1],-4)
>
> as workaround.
>
>
>
> _
> Is there any other way to change the velocity?
v=O.bodies[2].state.vel
O.bodies[2].state.vel=(v[0],v[1],-4)
as workaround.
___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.
Ok,
Is there any other way to change the velocity?
2010/4/16 Václav Šmilauer
>
> > O.bodies[id1].state.vel[2] = -4.0
> > print O.bodies[id1].state.vel[2]
> Oh, f**k... that comes from fixing
> https://bugs.launchpad.net/yade/+bug/539562
>
> Now you change [2] of a _copy_ of the real object (re
> O.bodies[id1].state.vel[2] = -4.0
> print O.bodies[id1].state.vel[2]
Oh, f**k... that comes from fixing
https://bugs.launchpad.net/yade/+bug/539562
Now you change [2] of a _copy_ of the real object (return_by_value)
which doesn't propagate back to c++; whereas previously, you were
chaning [2] o
Hi, all
I want to update the velocity of some spheres:
O.bodies[id1].state.vel[2] = -4.0
print O.bodies[id1].state.vel[2]
But the scripts gives me 0.0, so it is not updated.
r2091, what I can test, works normally. Is it a bug, or it is changed
something in the trunk?
Thank you.
9 matches
Mail list logo