Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 46 additions & 52 deletions source/source_cell/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,60 +2,54 @@ add_subdirectory(module_symmetry)
add_subdirectory(module_neighbor)
add_subdirectory(module_neighlist)

add_library(
domain_decomposition
OBJECT
domain_decomposition.cpp
)
add_library(domain_decomposition OBJECT domain_decomposition.cpp)

add_library(
cell
OBJECT
basecell.cpp
atom_pseudo.cpp
atom_spec.cpp
pseudo.cpp
read_pp.cpp
read_pp_complete.cpp
read_pp_upf100.cpp
read_pp_upf201.cpp
read_pp_blps.cpp
read_pp_vwr.cpp
mdcell_reader.cpp
mdcell.cpp
unitcell.cpp
unitcell_index.cpp
unitcell_stats.cpp
unitcell_setup.cpp
read_atoms.cpp
read_atoms_helper.cpp
read_orb.cpp
klist.cpp
klist_io.cpp
reciprocal_grid.cpp
parallel_kpoints.cpp
cell_index.cpp
cell_tools.cpp
cell_geometry.cpp
record_adj.cpp
check_atomic_stru.cpp
update_cell.cpp
magnetism.cpp
bcast_cell.cpp
read_stru.cpp
print_cell.cpp
read_atom_species.cpp
sep.cpp
sep_cell.cpp
qlist.cpp
qlist.h
cal_nelec_nband.cpp
read_pp_ucell.cpp
cal_wfc.cpp
cal_ux.cpp
cif_io.cpp
ucell_io.cpp
)
cell OBJECT
basecell.cpp
atom_pseudo.cpp
atom_spec.cpp
pseudo.cpp
read_pp.cpp
read_pp_complete.cpp
read_pp_upf100.cpp
read_pp_upf201.cpp
read_pp_blps.cpp
read_pp_vwr.cpp
mdcell_reader.cpp
mdcell.cpp
unitcell.cpp
unitcell_index.cpp
unitcell_stats.cpp
unitcell_setup.cpp
read_atoms.cpp
read_atoms_helper.cpp
read_orb.cpp
klist.cpp
klist_io.cpp
reciprocal_grid.cpp
parallel_kpoints.cpp
cell_index.cpp
cell_tools.cpp
cell_geometry.cpp
record_adj.cpp
check_atomic_stru.cpp
update_cell.cpp
magnetism.cpp
bcast_cell.cpp
read_stru.cpp
print_cell.cpp
read_atom_species.cpp
sep.cpp
sep_cell.cpp
qlist.cpp
qlist.h
cal_nelec_nband.cpp
read_pp_ucell.cpp
cal_wfc.cpp
cal_ux.cpp
cif_io.cpp
ucell_io.cpp)

if(ENABLE_COVERAGE)
add_coverage(cell)
Expand Down
12 changes: 3 additions & 9 deletions source/source_cell/module_neighbor/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
add_library(
neighbor
OBJECT
sltk_atom.cpp
sltk_atom_arrange.cpp
sltk_grid.cpp
sltk_grid_driver.cpp
)
add_library(neighbor OBJECT sltk_atom.cpp sltk_atom_arrange.cpp sltk_grid.cpp
sltk_grid_driver.cpp)

if(ENABLE_COVERAGE)
add_coverage(neighbor)
Expand All @@ -15,4 +9,4 @@ if(BUILD_TESTING)
if(ENABLE_MPI)
add_subdirectory(test)
endif()
endif()
endif()
45 changes: 28 additions & 17 deletions source/source_cell/module_neighbor/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,33 @@ abacus_disable_feature_definitions(__CUDA)
abacus_disable_feature_definitions(__ROCM)
abacus_disable_feature_definitions(__EXX)

AddTest(
TARGET MODULE_CELL_NEIGHBOR_sltk_atom
SOURCES sltk_atom_test.cpp ../sltk_atom.cpp
)
addtest(TARGET MODULE_CELL_NEIGHBOR_sltk_atom SOURCES sltk_atom_test.cpp
../sltk_atom.cpp)

AddTest(
TARGET MODULE_CELL_NEIGHBOR_sltk_grid
LIBS parameter base device cell_info
SOURCES sltk_grid_test.cpp ../sltk_grid.cpp ../sltk_atom.cpp
addtest(
TARGET
MODULE_CELL_NEIGHBOR_sltk_grid
LIBS
parameter
base
device
cell_info
SOURCES
sltk_grid_test.cpp
../sltk_grid.cpp
../sltk_atom.cpp)

)

AddTest(
TARGET MODULE_CELL_NEIGHBOR_sltk_atom_arrange
LIBS parameter base device cell_info
SOURCES sltk_atom_arrange_test.cpp ../sltk_atom_arrange.cpp ../sltk_grid_driver.cpp ../sltk_grid.cpp
../sltk_atom.cpp

)
addtest(
TARGET
MODULE_CELL_NEIGHBOR_sltk_atom_arrange
LIBS
parameter
base
device
cell_info
SOURCES
sltk_atom_arrange_test.cpp
../sltk_atom_arrange.cpp
../sltk_grid_driver.cpp
../sltk_grid.cpp
../sltk_atom.cpp)
14 changes: 3 additions & 11 deletions source/source_cell/module_neighlist/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
set(neighbor_search_sources
bin_manager.cpp
neighbor_list.cpp
neighbor_search.cpp
page_allocator.cpp
)
set(neighbor_search_sources bin_manager.cpp neighbor_list.cpp
neighbor_search.cpp page_allocator.cpp)

if(USE_CUDA AND ENABLE_GPU_NEIGHBOR_LIST)
list(APPEND neighbor_search_sources gpu_neighbor_list.cpp)
endif()

add_library(
neighbor_search
OBJECT
${neighbor_search_sources}
)
add_library(neighbor_search OBJECT ${neighbor_search_sources})

if(ENABLE_COVERAGE)
add_coverage(neighbor_search)
Expand Down
Loading
Loading