Skip to content

Commit c5bc6b1

Browse files
authored
Merge branch 'develop' into 03
2 parents c0f61a0 + 08ba134 commit c5bc6b1

9 files changed

Lines changed: 70 additions & 21 deletions

File tree

.github/workflows/test.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,26 @@ jobs:
9797
run: |
9898
ctest --test-dir build -V --timeout 1700 -R MODULE_MD
9999
100-
- name: source_psi Unittests
100+
- name: Module_Psi Unittests
101101
env:
102102
GTEST_COLOR: 'yes'
103103
OMP_NUM_THREADS: '2'
104104
run: |
105-
ctest --test-dir build -V --timeout 1700 -R source_psi
105+
ctest --test-dir build -V --timeout 1700 -R MODULE_PSI
106106
107107
- name: Module_RI Unittests
108108
env:
109109
GTEST_COLOR: 'yes'
110110
OMP_NUM_THREADS: '2'
111111
run: |
112112
ctest --test-dir build -V --timeout 1700 -R MODULE_RI
113+
114+
- name: Module_Estate Unittests
115+
env:
116+
GTEST_COLOR: 'yes'
117+
OMP_NUM_THREADS: '2'
118+
run: |
119+
ctest --test-dir build -V --timeout 1700 -R MODULE_ESTATE
113120
114121
- name: 01_PW Test
115122
env:
@@ -186,4 +193,4 @@ jobs:
186193
GTEST_COLOR: 'yes'
187194
OMP_NUM_THREADS: '2'
188195
run: |
189-
ctest --test-dir build -V --timeout 1700 -E 'integrate_test|01_PW|02_NAO_Gamma|03_NAO_multik|04_FF|05_rtTDDFT|06_SDFT|07_OFDFT|08_EXX|09_DeePKS|10_others|11_PW_GPU|12_NAO_Gamma_GPU|13_NAO_multik_GPU|15_rtTDDFT_GPU|16_SDFT_GPU|MODULE_BASE|MODULE_IO|MODULE_HSOLVER|MODULE_CELL|MODULE_MD|source_psi|MODULE_RI'
196+
ctest --test-dir build -V --timeout 1700 -E 'integrate_test|01_PW|02_NAO_Gamma|03_NAO_multik|04_FF|05_rtTDDFT|06_SDFT|07_OFDFT|08_EXX|09_DeePKS|10_others|11_PW_GPU|12_NAO_Gamma_GPU|13_NAO_multik_GPU|15_rtTDDFT_GPU|16_SDFT_GPU|MODULE_BASE|MODULE_IO|MODULE_HSOLVER|MODULE_CELL|MODULE_MD|MODULE_PSI|MODULE_ESTATE|MODULE_RI'

interfaces/ASE_interface/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is ASE interface with ABACUS
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is Candela interface with ABACUS
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is Hefei-NAMD interface with ABACUS

interfaces/PYATB_interface/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is PYATB interface with ABACUS

interfaces/README

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Interfaces for ABACUS
2+
3+
This directory contains interface modules and utilities that enable seamless
4+
integration between ABACUS (Atomic-orbital Based Ab-initio Computation at UStc)
5+
and other scientific software packages.
6+
7+
## Overview
8+
9+
ABACUS is a powerful electronic structure calculation package for ab-initio
10+
simulations. The interfaces here are designed to:
11+
- Facilitate data exchange (input/output files, calculation results) between
12+
ABACUS and external software
13+
- Enable interoperability for multi-step workflows (e.g., structure
14+
preprocessing -> ABACUS calculation -> post-analysis)
15+
- Standardize integration methods to ensure reproducibility and ease of use
16+
17+
## Usage Guidelines
18+
19+
- For each software interface, refer to the dedicated README file in the
20+
corresponding subdirectory (e.g., ASE_interface/README) for detailed usage
21+
instructions.
22+
- All interfaces follow consistent input/output standards to minimize workflow
23+
disruption.
24+
- Before using an interface, ensure you have the required dependencies installed
25+
(listed in each subdirectory's requirements.txt).
26+
27+
## Contributing
28+
29+
Contributions to expand or improve ABACUS interfaces are welcome:
30+
- Follow the ABACUS coding style and documentation standards
31+
- Add unit tests for new interface modules
32+
- Update this README and the supported software table when adding new interfaces
33+
- Submit pull requests with clear descriptions of the integration functionality
34+
35+
## Contact
36+
37+
For questions or issues related to these interfaces, please contact the ABACUS
38+
development team at: https://github.com/deepmodeling/abacus-develop/issues

source/source_estate/test/CMakeLists.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,44 +12,44 @@ if (ENABLE_MPI)
1212
install(DIRECTORY support DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
1313

1414
AddTest(
15-
TARGET Elecstate_Op_UTs
15+
TARGET MODULE_ESTATE_Elecstate_Op_UTs
1616
LIBS parameter ${math_libs} psi base device
1717
SOURCES ../kernels/test/elecstate_op_test.cpp
1818
)
1919

2020
AddTest(
21-
TARGET elecstate_occupy
21+
TARGET MODULE_ESTATE_elecstate_occupy
2222
LIBS parameter ${math_libs} base device
2323
SOURCES elecstate_occupy_test.cpp ../occupy.cpp
2424
)
2525

2626
AddTest(
27-
TARGET elecstate_magnetism
27+
TARGET MODULE_ESTATE_elecstate_magnetism
2828
LIBS parameter ${math_libs} base device
2929
SOURCES elecstate_magnetism_test.cpp ../magnetism.cpp
3030
)
3131

3232
AddTest(
33-
TARGET elecstate_fp_energy
33+
TARGET MODULE_ESTATE_elecstate_fp_energy
3434
LIBS parameter ${math_libs} base device
3535
SOURCES elecstate_fp_energy_test.cpp ../fp_energy.cpp
3636
)
3737

3838
AddTest(
39-
TARGET elecstate_print
39+
TARGET MODULE_ESTATE_elecstate_print
4040
LIBS parameter ${math_libs} base device
4141
SOURCES elecstate_print_test.cpp ../elecstate_print.cpp ../occupy.cpp
4242
)
4343

4444
AddTest(
45-
TARGET elecstate_base
45+
TARGET MODULE_ESTATE_elecstate_base
4646
LIBS parameter ${math_libs} base device
4747
SOURCES elecstate_base_test.cpp ../elecstate.cpp ../elecstate_tools.cpp ../occupy.cpp ../../source_psi/psi.cpp
4848
../../source_base/module_fft/fft_bundle.cpp ../../source_base/module_fft/fft_cpu.cpp
4949
)
5050

5151
AddTest(
52-
TARGET elecstate_pw
52+
TARGET MODULE_ESTATE_elecstate_pw
5353
LIBS parameter ${math_libs} planewave_serial base device
5454
SOURCES elecstate_pw_test.cpp
5555
../elecstate_pw.cpp
@@ -62,31 +62,31 @@ AddTest(
6262
)
6363

6464
AddTest(
65-
TARGET elecstate_energy
65+
TARGET MODULE_ESTATE_elecstate_energy
6666
LIBS parameter ${math_libs} base device
6767
SOURCES elecstate_energy_test.cpp ../elecstate_energy.cpp ../fp_energy.cpp
6868
)
6969

7070
AddTest(
71-
TARGET potentials_base
71+
TARGET MODULE_ESTATE_potentials_base
7272
SOURCES potentials_base_test.cpp
7373
)
7474

7575
AddTest(
76-
TARGET potentials_new
76+
TARGET MODULE_ESTATE_potentials_new
7777
LIBS parameter ${math_libs} base device planewave_serial
7878
SOURCES potential_new_test.cpp ../module_pot/potential_new.cpp
7979
)
8080

8181
AddTest(
82-
TARGET charge_test
82+
TARGET MODULE_ESTATE_charge_test
8383
LIBS parameter ${math_libs} planewave_serial base device cell_info
8484
SOURCES charge_test.cpp ../module_charge/charge.cpp
8585
../../source_io/module_output/output.cpp
8686
)
8787

8888
AddTest(
89-
TARGET charge_mixing
89+
TARGET MODULE_ESTATE_charge_mixing
9090
LIBS parameter base ${math_libs} psi device planewave_serial cell_info
9191
SOURCES charge_mixing_test.cpp
9292
../module_charge/charge_mixing.cpp ../module_charge/charge_mixing_dmr.cpp ../module_charge/charge_mixing_residual.cpp
@@ -95,7 +95,7 @@ AddTest(
9595
)
9696

9797
AddTest(
98-
TARGET charge_extra
98+
TARGET MODULE_ESTATE_charge_extra
9999
LIBS parameter ${math_libs} base device cell_info
100100
SOURCES charge_extra_test.cpp ../module_charge/charge_extra.cpp ../../source_io/module_output/read_cube.cpp ../../source_io/module_output/write_cube.cpp
101101
../../source_io/module_output/output.cpp ../../source_base/module_fft/fft_bundle.cpp ../../source_base/module_fft/fft_cpu.cpp

source/source_estate/test_mpi/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ remove_definitions(-D__MLALGO)
77
remove_definitions(-D_OPENMP)
88

99
AddTest(
10-
TARGET charge_mpi_test
10+
TARGET MODULE_ESTATE_charge_mpi_test
1111
LIBS parameter ${math_libs} psi base device planewave
1212
SOURCES charge_mpi_test.cpp ../module_charge/charge_mpi.cpp
1313
)
1414

15-
add_test(NAME charge_mpi_test_4np
16-
COMMAND mpirun -np 4 ./charge_mpi_test;
15+
add_test(NAME MODULE_ESTATE_charge_mpi_test_4np
16+
COMMAND mpirun -np 4 ./MODULE_ESTATE_charge_mpi_test;
1717
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
1818
)

source/source_psi/test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
AddTest(
2-
TARGET source_psi_Unittests
2+
TARGET MODULE_PSI_Unittests
33
LIBS parameter ${math_libs} base device
44
SOURCES
55
psi_test.cpp
@@ -8,7 +8,7 @@ AddTest(
88

99
if(ENABLE_LCAO)
1010
AddTest(
11-
TARGET source_psi_initializer_unit_test
11+
TARGET MODULE_PSI_initializer_unit_test
1212
LIBS parameter ${math_libs} base device psi psi_initializer planewave
1313
SOURCES
1414
psi_initializer_unit_test.cpp

0 commit comments

Comments
 (0)