|
![](/i/fill.gif) |
Daniel Genrich wrote:
>
> Hello!
>
> I'm just searching the code and wondering, why the function
> "Iterate_Cloth_Simulation" -clothray.cpp- has two parameters instead of one.
> I can't find, where the second one ("vector * resul") is used.
> I need this to figure out, how and where I can try to parallelize the code.
> ("clothray.cpp" seems easier than "mechsim.cpp" to me for this ;-) )
In Clothray you can distribute the content the main double loop in
'Iterate_Cloth_Simulation()'. But after every execution of the loop the
content of the position and velocity arrays have to be synchronized
between the nodes. I doubt this would be efficient because this is a lot
of data and one simulation step does not take very long.
Mechsim can be handled similarly but i would suggest you wait for the next
version because there will be a change in the code structure (the
different integration methods will be in separate functions).
Christoph
--
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 28 Feb. 2003 _____./\/^>_*_<^\/\.______
Post a reply to this message
|
![](/i/fill.gif) |