A MODIFIED TREE CODE - DONT LAUGH - IT RUNS

被引:119
作者
BARNES, JE [1 ]
机构
[1] INST ADV STUDY,PRINCETON,NJ 08540
关键词
D O I
10.1016/0021-9991(90)90232-P
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
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. © 1990.
引用
收藏
页码:161 / 170
页数:10
相关论文
共 15 条
[1]   AN EFFICIENT PROGRAM FOR MANY-BODY SIMULATION [J].
APPEL, AW .
SIAM JOURNAL ON SCIENTIFIC AND STATISTICAL COMPUTING, 1985, 6 (01) :85-103
[2]   A HIERARCHICAL O(N-LOG-N) FORCE-CALCULATION ALGORITHM [J].
BARNES, J ;
HUT, P .
NATURE, 1986, 324 (6096) :446-449
[3]   ERROR ANALYSIS OF A TREE CODE [J].
BARNES, JE ;
HUT, P .
ASTROPHYSICAL JOURNAL SUPPLEMENT SERIES, 1989, 70 (02) :389-417
[4]   A FAST ADAPTIVE MULTIPOLE ALGORITHM FOR PARTICLE SIMULATIONS [J].
CARRIER, J ;
GREENGARD, L ;
ROKHLIN, V .
SIAM JOURNAL ON SCIENTIFIC AND STATISTICAL COMPUTING, 1988, 9 (04) :669-686
[5]   A FAST ALGORITHM FOR PARTICLE SIMULATIONS [J].
GREENGARD, L ;
ROKHLIN, V .
JOURNAL OF COMPUTATIONAL PHYSICS, 1987, 73 (02) :325-348
[6]   VECTORIZATION OF TREE TRAVERSALS [J].
HERNQUIST, L .
JOURNAL OF COMPUTATIONAL PHYSICS, 1990, 87 (01) :137-147
[7]   PERFORMANCE-CHARACTERISTICS OF TREE CODES [J].
HERNQUIST, L .
ASTROPHYSICAL JOURNAL SUPPLEMENT SERIES, 1987, 64 (04) :715-734
[8]  
HILLIS D, 1985, CONNECTION MACHINE
[9]  
JERNIGAN JG, 1985, DYNAMICS STAR CLUSTE, P275
[10]   STRUCTURE OF STAR CLUSTERS .3. SOME SIMPLE DYNAMICAL MODELS [J].
KING, IR .
ASTRONOMICAL JOURNAL, 1966, 71 (01) :64-&