1 |
Symmetry of force on particles: Fij = -Fji (Newton's Law of Action and Reaction!)
-
only half need to be computed so should use triangular arrays
-
i.e. just do loops with sum over particles i, sum over particles j <= i and then calculate algebraic form of Fij and then accumulate
-
Force on i increments by Fij
-
Force on j decrements by Fij
|
2 |
There is a Load balancing problem with triangular arrays
|
3 |
Assuming for example that processors assigned with block distribution in column direction.
-
To calculate the force between 2 particles
-
will take N/Nproc iterations in the
-
longest running processor
-
i.e. you don't get factor of two back!
|