Nbody6
Main Page
Files
File List
File Members
All
Files
Functions
Variables
nbhist.f
Go to the documentation of this file.
1
SUBROUTINE
nbhist
2
*
3
*
4
* Neighbour list histogram.
5
* -------------------------
6
*
7
include
'common6.h'
8
INTEGER
ihist(32)
9
*
10
*
11
* Initialize histogram counters.
12
DO
10 j = 1,32
13
ihist(j) = 0
14
10
CONTINUE
15
*
16
* Loop over all single particles & c.m.
17
jmax = 0
18
fac = 1.0/log(1.9999999)
19
DO
20 i = ifirst,ntot
20
nnb = list(1,i)
21
zz = nnb + 1
22
j = 1 + log(zz)*fac
23
ihist(j) = ihist(j) + 1
24
jmax = max(j,jmax)
25
20
CONTINUE
26
*
27
* Print histogram of neighbour list membership.
28
jmax = min(jmax,12)
29
WRITE
(6,30) (ihist(j),j=1,jmax)
30
30
FORMAT
(
' #8 NBLIST '
,12i6)
31
*
32
RETURN
33
*
34
END
Nbody6
Ncode
nbhist.f
Generated on Sat Nov 30 2013 19:04:37 for Nbody6 by
1.8.2