Question #695886 on Yade changed:
https://answers.launchpad.net/yade/+question/695886
Status: Open => Answered
Jan Stránský proposed the following answer:
> yes, it is 'O.run()'.
What does "it is" mean? Do you have a new code? If so, please provide it with
the information what you have changed, e.g. O.run => O.run().
In the provided script, you have O.run, not O.run(), this is the main reason
why you have no output - there is no running at all.
With O.run(), all yade running is finished when python finishes reading and
executing the script lines - just after O.run() is executed.
O.run() starts running, but in the background, python continues reading and
executing lines, and since there is not much left, it finishes just after
O.run(), finishing also all yade running.
Use:
###
O.run()
O.wait() # [1,2], waits for O.pause inside checkUnbalanced()
# waitIfBatch() only works for batch run [3]
###
cheers
Jan
[1] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.Omega.wait
[2] https://yade-dem.org/doc/introduction.html#running-simulation
[3] https://yade-dem.org/doc/yade.utils.html#yade.utils.waitIfBatch
--
You received this question notification because your team yade-users is
an answer contact for Yade.
_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp