Skip to content

Commit 1532955

Browse files
committed
fix libxc param
1 parent e195da0 commit 1532955

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

source/source_hamilt/module_xc/xc_functional_libxc.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,35 +188,35 @@ const std::vector<double> in_built_xc_func_ext_params(const int id)
188188
// This is a range-separated hybrid functional with range-separation constant 0.400,
189189
// and 0.0% short-range and 100.0% long-range exact exchange,
190190
// using the error function kernel.
191-
return { std::stod(PARAM.inp.exx_fock_alpha[0]) * GlobalC::exx_info.info_global.hybrid_alpha, //Fraction of Hartree-Fock exchange: 1.0
192-
std::stod(PARAM.inp.exx_erfc_alpha[0]) * GlobalC::exx_info.info_global.hybrid_alpha, //Fraction of short-range exact exchange: -1.0
191+
return { std::stod(PARAM.inp.exx_fock_alpha[0]), //Fraction of Hartree-Fock exchange: 1.0
192+
std::stod(PARAM.inp.exx_erfc_alpha[0]), //Fraction of short-range exact exchange: -1.0
193193
GlobalC::exx_info.info_global.hse_omega }; //Range separation constant: 0.4
194194
}
195195
case XC_HYB_GGA_XC_LRC_WPBE: // Long-range corrected PBE (LRC-wPBE) by by Rohrdanz, Martins and Herbert
196196
{
197197
// This is a range-separated hybrid functional with range-separation constant 0.300,
198198
// and 0.0% short-range and 100.0% long-range exact exchange,
199199
// using the error function kernel.
200-
return { std::stod(PARAM.inp.exx_fock_alpha[0]) * GlobalC::exx_info.info_global.hybrid_alpha, //Fraction of Hartree-Fock exchange: 1.0
201-
std::stod(PARAM.inp.exx_erfc_alpha[0]) * GlobalC::exx_info.info_global.hybrid_alpha, //Fraction of short-range exact exchange: -1.0
200+
return { std::stod(PARAM.inp.exx_fock_alpha[0]), //Fraction of Hartree-Fock exchange: 1.0
201+
std::stod(PARAM.inp.exx_erfc_alpha[0]), //Fraction of short-range exact exchange: -1.0
202202
GlobalC::exx_info.info_global.hse_omega }; //Range separation constant: 0.3
203203
}
204204
case XC_HYB_GGA_XC_LRC_WPBEH: // Long-range corrected short-range hybrid PBE (LRC-wPBEh) by Rohrdanz, Martins and Herbert
205205
{
206206
// This is a range-separated hybrid functional with range-separation constant 0.200,
207207
// and 20.0% short-range and 100.0% long-range exact exchange,
208208
// using the error function kernel.
209-
return { std::stod(PARAM.inp.exx_fock_alpha[0]) * GlobalC::exx_info.info_global.hybrid_alpha, //Fraction of Hartree-Fock exchange: 1.0
210-
std::stod(PARAM.inp.exx_erfc_alpha[0]) * GlobalC::exx_info.info_global.hybrid_alpha, //Fraction of short-range exact exchange: -0.8
209+
return { std::stod(PARAM.inp.exx_fock_alpha[0]), //Fraction of Hartree-Fock exchange: 1.0
210+
std::stod(PARAM.inp.exx_erfc_alpha[0]), //Fraction of short-range exact exchange: -0.8
211211
GlobalC::exx_info.info_global.hse_omega }; //Range separation constant: 0.2
212212
}
213213
case XC_HYB_GGA_XC_CAM_PBEH: // CAM hybrid screened exchange PBE version
214214
{
215215
// This is a range-separated hybrid functional with range-separation constant 0.700,
216216
// and 100.0% short-range and 20.0% long-range exact exchange,
217217
// using the error function kernel.
218-
return { std::stod(PARAM.inp.exx_fock_alpha[0]) * GlobalC::exx_info.info_global.hybrid_alpha, //Fraction of Hartree-Fock exchange: 0.2
219-
std::stod(PARAM.inp.exx_erfc_alpha[0]) * GlobalC::exx_info.info_global.hybrid_alpha, //Fraction of short-range exact exchange: 0.8
218+
return { std::stod(PARAM.inp.exx_fock_alpha[0]), //Fraction of Hartree-Fock exchange: 0.2
219+
std::stod(PARAM.inp.exx_erfc_alpha[0]), //Fraction of short-range exact exchange: 0.8
220220
GlobalC::exx_info.info_global.hse_omega }; //Range separation constant: 0.7
221221
}
222222
#endif

0 commit comments

Comments
 (0)