Skip to content

Commit

Permalink
Changes to dft interface to reflect libxc devel branch
Browse files Browse the repository at this point in the history
  • Loading branch information
susilehtola committed Jul 1, 2024
1 parent 5afd003 commit d5034a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dftfuncs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ double exact_exchange(int func_id) {
}


#if XC_MAJOR_VERSION > 6
#if XC_MAJOR_VERSION > 7
switch(xc_hyb_type(&func)) {
case(XC_HYB_HYBRID):
f=xc_hyb_exx_coef(&func);
Expand Down Expand Up @@ -480,7 +480,7 @@ bool is_supported(int func_id) {
throw std::runtime_error(oss.str());
}
// Get flag
#if XC_MAJOR_VERSION > 6
#if XC_MAJOR_VERSION > 7
switch(xc_hyb_type(&func)) {
case(XC_HYB_SEMILOCAL):
case(XC_HYB_HYBRID):
Expand Down Expand Up @@ -514,7 +514,7 @@ bool is_range_separated(int func_id, bool check) {
oss << "Functional "<<func_id<<" not found!";
throw std::runtime_error(oss.str());
}
#if XC_MAJOR_VERSION > 6
#if XC_MAJOR_VERSION > 7
ans=(xc_hyb_type(&func) == XC_HYB_CAM);
#else
// Get flag
Expand Down Expand Up @@ -571,7 +571,7 @@ void range_separation(int func_id, double & omega, double & alpha, double & beta
xc_func_set_ext_params(&func, pars.memptr());
}

#if XC_MAJOR_VERSION > 6
#if XC_MAJOR_VERSION > 7
switch(xc_hyb_type(&func)) {
case(XC_HYB_HYBRID):
case(XC_HYB_CAM):
Expand Down

0 comments on commit d5034a0

Please sign in to comment.