Skip to content

Commit 033bfcf

Browse files
AsTonyshmentdyzheng
authored andcommitted
Fix: Resolve compilation issue with Libxc 7.0.0 in ABACUS (deepmodeling#5905)
* Fix: Resolve compilation issue with Libxc 7.0.0 in ABACUS * Fix: Resolve compilation issue with Libxc 7.0.0 in ABACUS: fix a minor test issue (304_NO_GO_AF_atommag)
1 parent 971ef1e commit 033bfcf

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

source/module_hamilt_general/module_xc/xc_functional_libxc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "module_base/vector3.h"
88

99
#include <xc.h>
10+
#include <xc_funcs.h>
1011

1112
#include <tuple>
1213
#include <vector>

source/module_hamilt_general/module_xc/xc_functional_wrapper_xc.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
// 2. xc_spin, which is the spin polarized counterpart of xc
66
// 3. xc_spin_libxc, which is the wrapper for LDA functional, spin polarized
77

8+
#ifdef USE_LIBXC
9+
#include <xc_funcs.h>
10+
#endif // ifdef USE_LIBXC
11+
812
#include "xc_functional.h"
913
#include <stdexcept>
1014

0 commit comments

Comments
 (0)