Skip to content

Commit fc28c66

Browse files
committed
Reformat code
1 parent 5c3283b commit fc28c66

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

test/grid_nhs.jl

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,20 @@
4040
update_grid!(nhs1, coordinates2)
4141

4242
# Get each neighbor for updated NHS
43-
neighbors2 = sort(collect(PointNeighbors.eachneighbor(particle_position1,
44-
nhs1)))
43+
neighbors2 = sort(collect(PointNeighbors.eachneighbor(particle_position1, nhs1)))
4544

4645
# Change position
4746
particle_position2 = particle_position1 .+ [1.4, -3.5]
4847

4948
# Get each neighbor for `particle_position2`
50-
neighbors3 = sort(collect(PointNeighbors.eachneighbor(particle_position2,
51-
nhs1)))
49+
neighbors3 = sort(collect(PointNeighbors.eachneighbor(particle_position2, nhs1)))
5250

5351
# Double search radius
5452
nhs2 = GridNeighborhoodSearch{2}(2 * radius, size(coordinates1, 2))
5553
initialize!(nhs2, coordinates1, coordinates1)
5654

5755
# Get each neighbor in double search radius
58-
neighbors4 = sort(collect(PointNeighbors.eachneighbor(particle_position1,
59-
nhs2)))
56+
neighbors4 = sort(collect(PointNeighbors.eachneighbor(particle_position1, nhs2)))
6057

6158
# Move particles
6259
coordinates2 = coordinates1 .+ [0.4, -0.4]
@@ -65,8 +62,7 @@
6562
update!(nhs2, coordinates2, coordinates2)
6663

6764
# Get each neighbor in double search radius
68-
neighbors5 = sort(collect(PointNeighbors.eachneighbor(particle_position1,
69-
nhs2)))
65+
neighbors5 = sort(collect(PointNeighbors.eachneighbor(particle_position1, nhs2)))
7066

7167
#### Verification against lists of potential neighbors built by hand
7268
@test neighbors1 == [17, 18, 19, 24, 25, 26, 31, 32, 33]
@@ -101,8 +97,7 @@
10197
initialize_grid!(nhs1, coords_fun)
10298

10399
# Get each neighbor for `particle_position1`
104-
neighbors1 = sort(collect(PointNeighbors.eachneighbor(particle_position1,
105-
nhs1)))
100+
neighbors1 = sort(collect(PointNeighbors.eachneighbor(particle_position1, nhs1)))
106101

107102
# Move particles
108103
coordinates2 = coordinates1 .+ [1.4, -3.5, 0.8]
@@ -112,15 +107,13 @@
112107
update_grid!(nhs1, coords_fun2)
113108

114109
# Get each neighbor for updated NHS
115-
neighbors2 = sort(collect(PointNeighbors.eachneighbor(particle_position1,
116-
nhs1)))
110+
neighbors2 = sort(collect(PointNeighbors.eachneighbor(particle_position1, nhs1)))
117111

118112
# Change position
119113
particle_position2 = particle_position1 .+ [1.4, -3.5, 0.8]
120114

121115
# Get each neighbor for `particle_position2`
122-
neighbors3 = sort(collect(PointNeighbors.eachneighbor(particle_position2,
123-
nhs1)))
116+
neighbors3 = sort(collect(PointNeighbors.eachneighbor(particle_position2, nhs1)))
124117

125118
#### Verification against lists of potential neighbors built by hand
126119
@test neighbors1 ==

0 commit comments

Comments
 (0)