A Comparison between the Fast Multipole Algorithm and the Tree-Code to Evaluate Gravitational Forces in 3-D

R. Capuzzo-Dolcetta,P. Miocchi
DOI: https://doi.org/10.1006/jcph.1998.5949
IF: 4.645
1998-06-01
Journal of Computational Physics
Abstract:We present tests of comparison between our versions of the Fast Multipole Algorithm (FMA) and the tree-code to evaluate gravitational forces in particle systems. We have optimized Greengard's original version of FMA allowing for a more efficient criterion ofwell-separationbetween boxes, to improve theadaptivityof the method (which is very important in highly inhomogeneous situations) and to permit thesmoothingof gravitational interactions. The results of our tests indicate that the tree-code is 2–4 times faster than the FMA for clumped distributions and 3–9 times for homogeneous distributions, at least in the interval ofNhere investigated (N≤ 2·105) and at the same level of accuracy (error∼10−3). This order of accuracy is generally considered as the best compromise between CPU-time consumption and precision for astrophysical simulations. Moreover, the claimed linear dependence onNof the CPU-time of the FMA is not confirmed and we give a “theoretical” explanation for that.
physics, mathematical,computer science, interdisciplinary applications
What problem does this paper attempt to address?