Skip to content

Commit 8ed37ed

Browse files
Merge pull request #91 from MatthewRHermes/libxc_7.0.0
Update to libxc 7.0.0 (issue #90)
2 parents 8fb92d6 + b827b90 commit 8ed37ed

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pyscf/lib/dft/libxc_itrf2.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ int LIBXC_is_hybrid(const xc_func_type *func)
710710
{
711711
int hyb;
712712

713-
#if XC_MAJOR_VERSION <= 6
713+
#if XC_MAJOR_VERSION <= 7
714714
switch(func->info->family)
715715
{
716716
#ifdef XC_FAMILY_HYB_LDA
@@ -734,7 +734,7 @@ double LIBXC_hybrid_coeff(const xc_func_type *func)
734734
{
735735
double factor;
736736

737-
#if XC_MAJOR_VERSION <= 6
737+
#if XC_MAJOR_VERSION <= 7
738738
switch(func->info->family)
739739
{
740740
#ifdef XC_FAMILY_HYB_LDA
@@ -769,7 +769,7 @@ void LIBXC_rsh_coeff(const xc_func_type *func, double *rsh_pars) {
769769
rsh_pars[1] = 0.0;
770770
rsh_pars[2] = 0.0;
771771

772-
#if XC_MAJOR_VERSION <= 6
772+
#if XC_MAJOR_VERSION <= 7
773773
XC(hyb_cam_coef)(func, &rsh_pars[0], &rsh_pars[1], &rsh_pars[2]);
774774
#else
775775
switch(xc_hyb_type(func)) {
@@ -781,7 +781,7 @@ void LIBXC_rsh_coeff(const xc_func_type *func, double *rsh_pars) {
781781
}
782782

783783
int LIBXC_is_cam_rsh(const xc_func_type *func) {
784-
#if XC_MAJOR_VERSION <= 6
784+
#if XC_MAJOR_VERSION <= 7
785785
return func->info->flags & XC_FLAGS_HYB_CAM;
786786
#else
787787
return (xc_hyb_type(func) == XC_HYB_CAM);
@@ -1084,7 +1084,7 @@ void LIBXC_xc_func_set_params(const int nfn, xc_func_type *fn_obj, const double
10841084
// set the range-separated parameter
10851085
if (omega[i] != 0) {
10861086
// skip if func is not a RSH functional
1087-
#if XC_MAJOR_VERSION <= 6
1087+
#if XC_MAJOR_VERSION <= 7
10881088
if (func->cam_omega != 0) {
10891089
func->cam_omega = omega[i];
10901090
}
@@ -1096,7 +1096,7 @@ void LIBXC_xc_func_set_params(const int nfn, xc_func_type *fn_obj, const double
10961096
// Recursively set the sub-functionals if they are RSH
10971097
// functionals
10981098
for (j = 0; j < func->n_func_aux; j++) {
1099-
#if XC_MAJOR_VERSION <= 6
1099+
#if XC_MAJOR_VERSION <= 7
11001100
if (func->func_aux[j]->cam_omega != 0) {
11011101
func->func_aux[j]->cam_omega = omega[i];
11021102
}

0 commit comments

Comments
 (0)