Consider time for Runge Kutta invocation of function Grav |
Shifting particles communicates one set of particle information - all processors communicate at the same time giving estimate: |
9 * tcomm (factor should be 7 as need only 1 not 3 masses as we used in simple implementation earlier)
|
Floating point calculations: roughly 3(x,y,z) of -, *, sum, sqrt, exp, /, *, +, *, + which can be summarized as estimate: > 30 tfloat |
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: |