Skip to content

Commit

Permalink
Test: add a unit test to constructor SR from reading csr file (#2780)
Browse files Browse the repository at this point in the history
Co-authored-by: root <hongriTianqi>
  • Loading branch information
hongriTianqi authored Aug 2, 2023
1 parent 9fd67cb commit b7bb740
Show file tree
Hide file tree
Showing 5 changed files with 957 additions and 8 deletions.
20 changes: 19 additions & 1 deletion source/module_hamilt_lcao/module_hcontainer/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ AddTest(
AddTest(
TARGET test_hcontainer_output
LIBS base ${math_libs} device
SOURCES output_hcontainer_test.cpp
SOURCES test_hcontainer_output.cpp
tmp_mocks.cpp
../output_hcontainer.cpp
../base_matrix.cpp
Expand All @@ -41,4 +41,22 @@ AddTest(
../../../module_basis/module_ao/parallel_orbitals.cpp
../../../module_io/sparse_matrix.cpp
)

install(DIRECTORY support DESTINATION ${CMAKE_CURRENT_BINARY_DIR})

AddTest(
TARGET test_hcontainer_readCSR
LIBS base ${math_libs} device cell_info
SOURCES test_hcontainer_readCSR.cpp
../base_matrix.cpp
../hcontainer.cpp
../atom_pair.cpp
../output_hcontainer.cpp
../../../module_basis/module_ao/parallel_2d.cpp
../../../module_basis/module_ao/parallel_orbitals.cpp
../../../module_io/sparse_matrix.cpp
../../../module_io/csr_reader.cpp
../../../module_io/file_reader.cpp
../../../module_io/output.cpp
)
endif()
Loading

0 comments on commit b7bb740

Please sign in to comment.