← Back to team overview

yade-users team mailing list archive

Re: [Question #697379]: Optimise material parameter

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Yes :-)

> O.run()

(not sure if it was just pseudo-code or meant to be used)
O.run() "as is" is not the right command, Python continues execution of next lines after O.run(), e.g. going to the next loop iteration and resetting the running simulation.

Either use
###
O.run(numIter,True) # True ... it waits until numIter is finished
###
or
###
O.run()
O.wait() # waits to O.pause() e.g. called from PyRunner checker, does not continue next line execution before simulation is paused
###

Cheers
Jan

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