-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
213 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
[deps] | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed" | ||
PointNeighbors = "1c4d5385-0a27-49de-8e2c-43b175c8985c" | ||
TrixiBase = "9a0f1c46-06d5-4909-a5a3-ce25d3fa3284" | ||
|
||
[compat] | ||
Documenter = "1" | ||
OrdinaryDiffEq = "6" | ||
PointNeighbors = "0.3" | ||
TrixiBase = "0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# PointNeighbors.jl API | ||
|
||
```@meta | ||
CurrentModule = PointNeighbors | ||
``` | ||
|
||
```@autodocs | ||
Modules = [PointNeighbors] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
# Loop over all pairs of particles and neighbors within the kernel cutoff. | ||
# `f(particle, neighbor, pos_diff, distance)` is called for every particle-neighbor pair. | ||
# By default, loop over `each_moving_particle(system)`. | ||
function PointNeighbors.for_particle_neighbor(f, system, neighbor_system, | ||
system_coords, neighbor_coords, | ||
neighborhood_search; | ||
particles=each_moving_particle(system), | ||
parallel=true) | ||
for_particle_neighbor(f, system_coords, neighbor_coords, neighborhood_search, | ||
particles=particles, parallel=parallel) | ||
function PointNeighbors.foreach_point_neighbor(f, system, neighbor_system, | ||
system_coords, neighbor_coords, | ||
neighborhood_search; | ||
points=each_moving_particle(system), | ||
parallel=true) | ||
foreach_point_neighbor(f, system_coords, neighbor_coords, neighborhood_search; | ||
points, parallel) | ||
end | ||
|
||
function PointNeighbors.for_particle_neighbor(f, system::GPUSystem, neighbor_system, | ||
system_coords, neighbor_coords, | ||
neighborhood_search; | ||
particles=each_moving_particle(system), | ||
parallel=true) | ||
@threaded system for particle in particles | ||
function PointNeighbors.foreach_point_neighbor(f, system::GPUSystem, neighbor_system, | ||
system_coords, neighbor_coords, | ||
neighborhood_search; | ||
points=each_moving_particle(system), | ||
parallel=true) | ||
@threaded system for point in points | ||
PointNeighbors.foreach_neighbor(f, system_coords, neighbor_coords, | ||
neighborhood_search, particle) | ||
neighborhood_search, point) | ||
end | ||
end |
Oops, something went wrong.