A modified tree code: Don't laugh; It runs

https://doi.org/10.1016/0021-9991(90)90232-PGet rights and content

Abstract

I describe a modification of the Barnes-Hut tree algorithm together with a series of numerical tests of this method. The basic idea is to improve the performance of the code on heavily vector-oriented machines such as the Cyber 205 by exploiting the fact that nearby particles tend to have very similar interaction lists. By building an interaction list good everywhere within a cell containing a modest number of particles and reusing this interaction list for each particle in the cell in turn, the balance of computation can be shifted from recursive descent to force summation. Instead of vectorizing tree descent, this scheme simply avoids it in favor of force summation, which is quite easy to vectorize. A welcome side-effect of this modification is that the force calculation, which now treats a larger fraction of the local interactions exactly, is significantly more accurate than the unmodified method.

References (15)

  • J. Makino

    J. Comput. Phys.

    (1990)
  • L. Hernquist

    J. Comput. Phys.

    (1990)
  • A. Appel

    SIAM J. Sci. Statist. Comput.

    (1985)
  • J.G. Jernigan

    Dynamics of Star Clusters, Princeton, New Jersey, 1984

  • D. Porter
  • J.E. Barnes et al.

    Nature

    (1986)
  • L. Greengard et al.

    J. Comput. Phys.

    (1986)
There are more references available in the full text version of this article.

Cited by (134)

  • Probabilistic guards: A mechanism for increasing the granularity of work-stealing programs

    2019, Parallel Computing
    Citation Excerpt :

    Based on treecode version 1.4 [11], we used the initial conditions of the Plummer model. In Tascell, the fast “highly serial” algorithm [12] is well parallelized with lazy copy of workspaces. We adopted 100,000 and 500,000 as n.

  • Optimizing the gravitational tree algorithm for many-core processors

    2024, Monthly Notices of the Royal Astronomical Society
View all citing articles on Scopus

Current address: Canadian Institute for Theoretical Astrophysics, 60 Saint George Street, Toronto, Ontario, Canada M5S 1Al.

View full text