Skip to content

Commit

Permalink
enh: linear and efficient neighbour finder
Browse files Browse the repository at this point in the history
  • Loading branch information
pfebrer committed Oct 19, 2023
1 parent 3037351 commit f0da018
Show file tree
Hide file tree
Showing 7 changed files with 1,153 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/sisl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ endforeach()
# Add other sub-directories
add_subdirectory("io")
add_subdirectory("physics")
add_subdirectory("geom")
1 change: 1 addition & 0 deletions src/sisl/geom/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_subdirectory("neighs")
1 change: 1 addition & 0 deletions src/sisl/geom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@
from .nanotube import *
from .special import *
from .surfaces import *
from .neighs import *

Check notice

Code scanning / CodeQL

'import *' may pollute namespace Note

Import pollutes the enclosing namespace, as the imported module
sisl.geom.neighs
does not define '__all__'.
19 changes: 19 additions & 0 deletions src/sisl/geom/neighs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# In this directory we have a set of libraries
# We will need to link to the Numpy includes
set_property(DIRECTORY
APPEND
PROPERTY INCLUDE_DIRECTORIES
${CMAKE_CURRENT_SOURCE_DIR}/..
)

foreach(source
cneighs
)
add_cython_library(
SOURCE ${source}.pyx
LIBRARY ${source}
OUTPUT ${source}_C
)
install(TARGETS ${source} LIBRARY
DESTINATION ${SKBUILD_PROJECT_NAME}/geom/neighs)
endforeach()
1 change: 1 addition & 0 deletions src/sisl/geom/neighs/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .neighfinder import NeighFinder
Loading

0 comments on commit f0da018

Please sign in to comment.