← Back to team overview

yade-users team mailing list archive

Re: [Question #695886]: no file output by running yade -n *.py


Question #695886 on Yade changed:

    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.

O.wait() # [1,2], waits for O.pause inside checkUnbalanced()
# waitIfBatch() only works for batch run [3]


[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.