Skip to content

Commit 5a5ebf8

Browse files
committed
Apply Trixi.jl formatter style
1 parent 9e5741c commit 5a5ebf8

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

src/grid_nhs.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ struct GridNeighborhoodSearch{NDIMS, ELTYPE, PB}
101101
threaded_nhs_update :: Bool
102102

103103
function GridNeighborhoodSearch{NDIMS}(search_radius, n_particles;
104-
periodic_box_min_corner=nothing,
105-
periodic_box_max_corner=nothing,
106-
threaded_nhs_update=true) where {NDIMS}
104+
periodic_box_min_corner = nothing,
105+
periodic_box_max_corner = nothing,
106+
threaded_nhs_update = true) where {NDIMS}
107107
ELTYPE = typeof(search_radius)
108108

109109
hashtable = Dict{NTuple{NDIMS, Int}, Vector{Int}}()
@@ -385,8 +385,8 @@ function z_index_sort!(coordinates, system)
385385
(; mass, pressure, neighborhood_search) = system
386386

387387
perm = sortperm(eachparticle(system),
388-
by=(i -> cell_z_index(extract_svector(coordinates, system, i),
389-
neighborhood_search)))
388+
by = (i -> cell_z_index(extract_svector(coordinates, system, i),
389+
neighborhood_search)))
390390

391391
permute!(mass, perm)
392392
permute!(pressure, perm)
@@ -407,8 +407,8 @@ function copy_neighborhood_search(nhs::GridNeighborhoodSearch, search_radius, u)
407407
search = GridNeighborhoodSearch{ndims(nhs)}(search_radius, nparticles(nhs))
408408
else
409409
search = GridNeighborhoodSearch{ndims(nhs)}(search_radius, nparticles(nhs),
410-
periodic_box_min_corner=nhs.periodic_box.min_corner,
411-
periodic_box_max_corner=nhs.periodic_box.max_corner)
410+
periodic_box_min_corner = nhs.periodic_box.min_corner,
411+
periodic_box_max_corner = nhs.periodic_box.max_corner)
412412
end
413413

414414
# Initialize neighborhood search

src/neighborhood_search.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ end
1111

1212
@inline function for_particle_neighbor(f::T, system_coords, neighbor_coords,
1313
neighborhood_search;
14-
particles=axes(system_coords, 2), parallel=true) where T
14+
particles = axes(system_coords, 2),
15+
parallel = true) where {T}
1516
for_particle_neighbor(f, system_coords, neighbor_coords, neighborhood_search, particles,
1617
Val(parallel))
1718
end

src/trivial_nhs.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ struct TrivialNeighborhoodSearch{NDIMS, ELTYPE, EP, PB}
6666
periodic_box :: PB
6767

6868
function TrivialNeighborhoodSearch{NDIMS}(search_radius, eachparticle;
69-
periodic_box_min_corner=nothing,
70-
periodic_box_max_corner=nothing) where {NDIMS}
69+
periodic_box_min_corner = nothing,
70+
periodic_box_max_corner = nothing) where {
71+
NDIMS
72+
}
7173
if search_radius < eps() ||
7274
(periodic_box_min_corner === nothing && periodic_box_max_corner === nothing)
7375

0 commit comments

Comments
 (0)