From c89cfeb07597e21450142eba9464a5d656921481 Mon Sep 17 00:00:00 2001 From: AsTonyshment Date: Mon, 31 Aug 2026 19:02:55 +0800 Subject: [PATCH] Fix: Restore LibXC functional IDs after XC split --- source/source_hamilt/module_xc/xc_grad.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/source_hamilt/module_xc/xc_grad.cpp b/source/source_hamilt/module_xc/xc_grad.cpp index 9d83322912..c7bf9a2013 100644 --- a/source/source_hamilt/module_xc/xc_grad.cpp +++ b/source/source_hamilt/module_xc/xc_grad.cpp @@ -17,6 +17,10 @@ #include "xc_grad_internal.h" #include "source_base/timer.h" +#ifdef __LIBXC +#include +#endif + void XC_Functional::gradcorr( double &etxc, double &vtxc,