yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #20185
Re: [Question #682161]: usage of label
Question #682161 on Yade changed:
https://answers.launchpad.net/yade/+question/682161
Status: Open => Answered
Jan Stránský proposed the following answer:
> But if you add anything to the last line, then it just goes wrong!
> 33# do anthing
Sorry, please be as specific as possible and prodive a MWE [1] reproducing your problem.
For example, I added
print 1+1
which normally printed 2 as the expected result..
> O.run(1)# This this line is commented, then everything works fine
O.run(N) and writing other code is not a good idea as the behavior is undefined (running Yade and executing the other python code run alongside in separate threads).
Use either O.step() or O.run(1,True)
cheers
Jan
[1] https://www.yade-dem.org/wiki/Howtoask
--
You received this question notification because your team yade-users is
an answer contact for Yade.