multiprocessing of many scenes

Asked by ceguo

Hi,

In my simulation, I have a lot of scenes (several hundreds or even thousands by using O.addScene()).
A typical operation looks like:

for i in range(200):
    O.switchToScene(i)
    run some simulation here...
    stress=utils.getStress()

Is it possible to parallel the calculation? Any method or package is OK.

Ning

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jan Stránský (honzik) said :
#1

Hi Ning,
for pure python applications, I was using 'multiprocessing' python module,
but I don't know if it will work for Yade.. you can try :-)
Jan

2012/11/4 ceguo <email address hidden>

> New question #213232 on Yade:
> https://answers.launchpad.net/yade/+question/213232
>
> Hi,
>
> In my simulation, I have a lot of scenes (several hundreds or even
> thousands by using O.addScene()).
> A typical operation looks like:
>
> for i in range(200):
> O.switchToScene(i)
> run some simulation here...
> stress=utils.getStress()
>
> Is it possible to parallel the calculation? Any method or package is OK.
>
> Ning
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Can you help with this problem?

Provide an answer of your own, or ask ceguo for more information if necessary.

To post a message you must log in.