blob: 999399167b70a14c02b318f17b8f8d4e23b297b8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
--- src/general/dftfuncs.cpp.orig 2021-09-12 09:32:14 UTC
+++ src/general/dftfuncs.cpp
@@ -388,7 +388,7 @@ double exact_exchange(int func_id) {
throw std::runtime_error(oss.str());
}
-#if XC_MAJOR_VERSION < 6
+#if XC_MAJOR_VERSION < 7
switch(func.info->family)
{
#ifdef XC_FAMILY_HYB_LDA
@@ -431,7 +431,7 @@ bool is_supported(int func_id) {
throw std::runtime_error(oss.str());
}
// Get flag
-#if XC_MAJOR_VERSION >= 6
+#if XC_MAJOR_VERSION > 6
switch(xc_hyb_type(&func)) {
case(XC_HYB_SEMILOCAL):
case(XC_HYB_HYBRID):
@@ -463,7 +463,7 @@ void is_range_separated(int func_id, bool & erf, bool
throw std::runtime_error(oss.str());
}
// Get flag
-#if XC_MAJOR_VERSION < 6
+#if XC_MAJOR_VERSION < 7
erf=(func.info->flags & XC_FLAGS_HYB_CAM) || (func.info->flags & XC_FLAGS_HYB_LC);
yukawa=(func.info->flags & XC_FLAGS_HYB_CAMY) || (func.info->flags & XC_FLAGS_HYB_LCY);
#else
@@ -507,7 +507,7 @@ void range_separation(int func_id, double & omega, dou
throw std::runtime_error(oss.str());
}
-#if XC_MAJOR_VERSION >= 6
+#if XC_MAJOR_VERSION > 6
switch(xc_hyb_type(&func)) {
case(XC_HYB_SEMILOCAL):
break;
|