Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Modeling Tips & Help post and replies

Return to the Modeling Tips & Help thread
Login to post to this thread

Parallelization - May 23, 2011 at 11:42AM
Zach Wilson
1 Posts

Does anyone know if there is a way to utilize parallel computing or if there is going to be a version dedicated to this?

Replies to Parallelization

Re: Parallelization - May 24 2011 3:36AM
Francisco Esquembre
222 Posts

The Parallel Java library (see is a very nice 100% Java library that can be used for this. The book from the author is also a nice text for Java programmers.

I am so fond of this, that I plan to add Model Elements to EJS that will make it easy for an EJS author to parallelize a model in a shared memory multiprocessor computer. (The library also supports small clusters.)

I also plan to use the examples from Kaminsky's book (see the Web page above) to create the corresponding EJS examples.

When will this be ready? I can't promise it, because the term hasn't finished yet in Spain. But I want to work on this before the summer and maybe finish it during August.


Post edited May 24, 2011 at 3:35 AM EST.

Re: Parallelization - Oct 20 2011 5:46PM
Francisco Esquembre
222 Posts

Ok. Here they are.
The latest EJS has brand new Model elements based on the Parallel Java library that allow you to create nice parallel algorithms. The source code examples contain a number of examples taken from the book "Building Parallel Programs" by Alan Kaminsky.
These are tools for multicore shared-memory computers. I have tried the examples with a 12 cores computer and the result is superb!
The examples are in users/murcia/fem/demos/ParallelElements

Post edited October 20, 2011 at 5:44 PM EST.

The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics