#Sequential, Parallel and Distributive

3 messages · Page 1 of 1 (latest)

ocean edge
#

The task is to implement particles which are colored differently depending on their electricity (positive or negative). Using the formula:

F = |ci · cj | / d^2

We calculate the force between two particles. If the particles have the same charge then the force will attract them, otherwise the force repels them. Particles move in a two-dimensional plane that is bounded with a rectangle. The rectangle bounds hole the particles in the array by having its own charge that repels particles. At the beginning, the particles are given random positions and speed. You can chose how many cycles you want to do and how many particles you want.

Since you can choose if the program is going to be run in sequential, parallel or distributed mode, my biggest problem is how to make it so that implementation must adapt automatically to the hardware it is being ran on (Physical CPU’s, Cores, Memory, etc..)

Note: Sequential part of the execution is just called startSimulation().

stoic foxBOT
#

This post has been reserved for your question.

Hey @ocean edge! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.