Re: [Yade-users] [Question #225080]: Many scenes syncronization

2013-03-28 Thread ceguo
Question #225080 on Yade changed:
https://answers.launchpad.net/yade/+question/225080

Status: Answered = Open

ceguo is still having a problem:
Thanks Bruno,

I got your idea for multithreading and now I'm trying to implement your idea. 
Everything goes well except that I save a temporary simulation setup using 
Omega().saveTmp() and later I want to use Omega().loadTmp() to load it. For one 
threading it's no problem. But how to access the memory in multiprocessing? 
Another alternative is to save to hard disc using save() and load(), which will 
be more expensive.
I have little experience in parallelization. Hope anyone can offer help.

tks,
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 : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #225080]: Many scenes syncronization

2013-03-28 Thread Bruno Chareyre
Question #225080 on Yade changed:
https://answers.launchpad.net/yade/+question/225080

Status: Open = Answered

Bruno Chareyre proposed the following answer:
Interesting question. I would think this is where independant processes
(my example) differs with multithreading, since memory is not shared in
the first case.

One way to solve your problem, even in the first case, would be to
manipulate the saved state in the main script. I'm sure it is possible,
although I can't tell you exactly how to achieve this. You need to skip
that part writing to the HD when saving a simulation. Maybe inspecting
how saveTmp() works would give you an idea.

-- 
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 : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #225080]: Many scenes syncronization

2013-03-25 Thread Jan Stránský
Question #225080 on Yade changed:
https://answers.launchpad.net/yade/+question/225080

Status: Open = Answered

Jan Stránský proposed the following answer:
Hi Ning,
it is not possible in current implementation.. O.run() always run only
current scene. For the behavior you proposed, some more implementation
would be needed..
Jan


2013/3/25 ceguo question225...@answers.launchpad.net

 New question #225080 on Yade:
 https://answers.launchpad.net/yade/+question/225080

 Hi,

 Following the question 216997, I have many scenes in yade by using
 O.addScene(). Now if I use O.run(stepno) without O.wait(), I can go to
 other scenes and run O.run(). Is this a possible way to parallel many
 scenes simulation? If luckily YES, what is the best way to synchronize
 these simulations? For example, I want each scene to run 1000 steps and
 return the stress after finishing.

 tks
 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 : yade-users@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~yade-users
 More help   : https://help.launchpad.net/ListHelp


-- 
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 : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp