yade-users team mailing list archive
Mailing list archive
Re: [Question #677084]: manipulate the spheres during running
Question #677084 on Yade changed:
Status: Open => Answered
Chareyre proposed the following answer:
Batch is already multithread, by definition. It thus seems you are nesting
threads into threads.
Still unclear what you are trying to achieve. It should be enough to load()
then run(). No need for python's threading module.
As for why it seems to work in normal mode... it's just puzzling me.
Le ven. 28 déc. 2018 00:27, gaoxuesong <question677084@xxxxxxxxxxxxxxxxxxxxx>
a écrit :
> Question #677084 on Yade changed:
> Status: Answered => Open
> gaoxuesong is still having a problem:
> Hi. The thing i want is with the yade-batch mode, when i finish 5000
> iters, i want to reload some previous state which has been saved before. So
> the procedure should be like this,
> create a new thread, invoke a new function, and execute the O.load()
> def newThread():
> if O.time > 3.6:
> import thread
> def newRun():
> I find this method is ok in usual mode of yade, but failed in batch
> 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 : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
You received this question notification because your team yade-users is
an answer contact for Yade.