1 | Consider time for Runge Kutta invocation of function Grav |
2 | Shifting particles communicates one set of particle information - all processors communicate at the same time giving estimate: |
3 |
9 * tcomm (factor should be 7 as need only 1 not 3 masses as we used in simple implementation earlier)
|
4 | Floating point calculations: roughly 3(x,y,z) of -, *, sum, sqrt, exp, /, *, +, *, + which can be summarized as estimate: > 30 tfloat |
5 | Each communicated particle is interacted with the N/Nproc particles in the local partition of that processor and each step has one shift giving a total time for (N-1)/2 steps in Grav: |