Skip to content

Commit 1c9a681

Browse files
committed
update module_xc/test/CMakeLists.txt
1 parent 269f43d commit 1c9a681

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

source/module_hamilt_general/module_xc/test/CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ remove_definitions(-DUSE_PAW)
22

33
AddTest(
44
TARGET XCTest_PBE
5-
LIBS parameter MPI::MPI_CXX Libxc::xc # required by global.h; for details, `remove_definitions(-D__MPI)`.
5+
LIBS parameter MPI::MPI_CXX Libxc::xc base # required by global.h; for details, `remove_definitions(-D__MPI)`.
66
SOURCES test_xc.cpp ../xc_functional.cpp ../xc_functional_wrapper_xc.cpp ../xc_functional_wrapper_gcxc.cpp ../xc_funct_corr_gga.cpp ../xc_funct_corr_lda.cpp ../xc_funct_exch_gga.cpp ../xc_funct_exch_lda.cpp ../xc_funct_hcth.cpp
77
../xc_functional_libxc_wrapper_gcxc.cpp ../xc_functional_libxc.cpp
88
)
99

1010
AddTest(
1111
TARGET XCTest_HSE
12-
LIBS parameter MPI::MPI_CXX Libxc::xc # required by global.h; for details, `remove_definitions(-D__MPI)`.
12+
LIBS parameter MPI::MPI_CXX Libxc::xc base # required by global.h; for details, `remove_definitions(-D__MPI)`.
1313
SOURCES test_xc1.cpp ../xc_functional.cpp ../xc_functional_libxc.cpp
1414
)
1515

1616

1717
AddTest(
1818
TARGET XCTest_PZ_SPN
19-
LIBS parameter MPI::MPI_CXX Libxc::xc # required by global.h; for details, `remove_definitions(-D__MPI)`.
19+
LIBS parameter MPI::MPI_CXX Libxc::xc base # required by global.h; for details, `remove_definitions(-D__MPI)`.
2020
SOURCES test_xc2.cpp ../xc_functional.cpp ../xc_functional_wrapper_xc.cpp ../xc_functional_wrapper_gcxc.cpp ../xc_funct_corr_gga.cpp ../xc_funct_corr_lda.cpp ../xc_funct_exch_gga.cpp ../xc_funct_exch_lda.cpp ../xc_funct_hcth.cpp
2121
../xc_functional_libxc_wrapper_gcxc.cpp ../xc_functional_libxc_wrapper_xc.cpp ../xc_functional_libxc.cpp
2222
)
@@ -29,7 +29,7 @@ list(APPEND FFT_SRC ../../../module_basis/module_pw/module_fft/fft_rocm.cpp)
2929
endif()
3030
AddTest(
3131
TARGET XCTest_GRADCORR
32-
LIBS parameter MPI::MPI_CXX Libxc::xc ${math_libs} psi device container
32+
LIBS parameter MPI::MPI_CXX Libxc::xc base ${math_libs} psi device container
3333
SOURCES test_xc3.cpp ../xc_functional_gradcorr.cpp ../xc_functional.cpp
3434
../xc_functional_wrapper_xc.cpp ../xc_functional_wrapper_gcxc.cpp
3535
../xc_functional_libxc.cpp
@@ -50,20 +50,20 @@ AddTest(
5050

5151
AddTest(
5252
TARGET XCTest_SCAN
53-
LIBS parameter MPI::MPI_CXX Libxc::xc
53+
LIBS parameter MPI::MPI_CXX Libxc::xc base
5454
SOURCES test_xc4.cpp ../xc_functional.cpp ../xc_functional_wrapper_xc.cpp
5555
../xc_functional_wrapper_gcxc.cpp
5656
../xc_functional_libxc.cpp
5757
../xc_functional_libxc_wrapper_xc.cpp
5858
../xc_functional_libxc_wrapper_gcxc.cpp
5959
../xc_functional_libxc_wrapper_tauxc.cpp
60-
../xc_funct_corr_gga.cpp ../xc_funct_corr_lda.cpp
61-
../xc_funct_exch_gga.cpp ../xc_funct_exch_lda.cpp ../xc_funct_hcth.cpp
60+
../xc_funct_corr_gga.cpp ../xc_funct_corr_lda.cpp
61+
../xc_funct_exch_gga.cpp ../xc_funct_exch_lda.cpp ../xc_funct_hcth.cpp
6262
)
6363

6464
AddTest(
6565
TARGET XCTest_VXC
66-
LIBS parameter MPI::MPI_CXX Libxc::xc ${math_libs} psi device container
66+
LIBS parameter MPI::MPI_CXX Libxc::xc base ${math_libs} psi device container
6767
SOURCES test_xc5.cpp ../xc_functional_gradcorr.cpp ../xc_functional.cpp
6868
../xc_functional_wrapper_xc.cpp ../xc_functional_wrapper_gcxc.cpp
6969
../xc_functional_libxc.cpp

source/module_hamilt_general/module_xc/xc_functional.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#include "module_hamilt_pw/hamilt_pwdft/global.h"
33
#include "module_parameter/parameter.h"
44
#include "module_base/global_function.h"
5+
#include "module_base/tool_title.h"
6+
57
#ifdef USE_PAW
68
#include "module_cell/module_paw/paw_cell.h"
79
#endif

0 commit comments

Comments
 (0)