Skip to content

Commit 1e1a2ee

Browse files
author
wenfei-li
committed
xc_functional : explicitely set use_libxc = true again for some cases
1 parent 120bf55 commit 1e1a2ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/module_xc/xc_functional.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ void XC_Functional::set_xc_type(const std::string xc_func_in)
102102
func_id.push_back(XC_MGGA_X_SCAN);
103103
func_id.push_back(XC_MGGA_C_SCAN);
104104
func_type = 3;
105+
use_libxc = true;
105106
}
106107
#endif
107108
else if( xc_func == "PBE0")
@@ -120,13 +121,15 @@ void XC_Functional::set_xc_type(const std::string xc_func_in)
120121
{
121122
func_id.push_back(XC_HYB_GGA_XC_HSE06);
122123
func_type = 4;
124+
use_libxc = true;
123125
}
124126
#endif
125127
else
126128
{
127129
#ifdef USE_LIBXC
128130
//see if it matches libxc functionals
129131
set_xc_type_libxc(xc_func);
132+
use_libxc = true;
130133
#else
131134
std::cout << "functional name not recognized!" << std::endl;
132135
#endif

0 commit comments

Comments
 (0)