← Back to team overview

yade-users team mailing list archive

Re: [Question #707350]: Stop Sim After Reaching StressTriaxController Goal from doneHook?

 

Question #707350 on Yade changed:
https://answers.launchpad.net/yade/+question/707350

Jan Stránský posted a new comment:
dark Yade windows (GUI, plot, 3D view) is the result of
O.run(...,wait=True), when all python Yade (including the windows) waits
for C++ part to be finished.

You can try to put the condition in a PyRunner, something like (not tested):
###
O.engines = [
    ...
    PyRunner(iterPeriod=N,command="check()"),
]
def check():
    if stopCondition():
        O.pause()
###

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.