-
Notifications
You must be signed in to change notification settings - Fork 2
/
node.jl
57 lines (35 loc) · 1.4 KB
/
node.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
type Node
parent # parent Id of this node, -1 means root.
child # child node Ids.
uList # neighbour list (including itself), only leaf has
vList # far field list
wList # near field, only leaf has
xList # far field list
nLevel # level of this node
nUList # number of neighbours
nVList # number of V far field
nWList # number of W near field
nXList # number of X far field
nodeIndex # numbering of this node in its parent's child
center # center coordinate of this node
radius # radius of this node
nSource # source points number
nTarget # target points number
sourceIndex # index for source for locating source
targetIndex # index for target for locating target
source # source list
normal # normal list
target # target list
shiftedUpEquivalentSurface
shiftedDownEquivalentSurface
shiftedUpCheckSurface
shiftedDownCheckSurface
upwardEquivalent # associated with box
downwardEquivalent # associated with box
charge # associated with source
potential # associated with target
isLeaf
isEmpty
chargeComputed
Node(nl, ni) = new(-1, Int[], Int[], Int[], Int[], Int[], nl, 0,0,0,0, ni, [Inf, Inf], [Inf, Inf], 0, 0, Int[], Int[], [],[],[], [],[],[], [], Float64[], Float64[], Float64[], Float64[], false, false, false)
end