Skip to content

Commit a1b45d6

Browse files
authored
Merge pull request #124 from PeizeLin/develop
1. fix bug for 'dft_functional = hse' in LOOP_elec::solver()
2 parents 43fd169 + 6fff351 commit a1b45d6

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

examples/hse-Si-example/INPUT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ gamma_only 0
1212
smearing_method smearing_method
1313
mixing_type pulay
1414

15-
exx_hybrid_type hse
15+
dft_functional hse
1616
exx_separate_loop 0
1717
exx_pca_threshold 1E-3
1818
exx_ccp_rmesh_times 10

source/module_xc/xc_functional.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ void XC_Functional::set_xc_type(const std::string xc_func_in)
120120
{
121121
func_id.push_back(XC_HYB_GGA_XC_HSE06);
122122
func_type = 4;
123+
use_libxc = true;
123124
}
124125
#endif
125126
else

source/src_lcao/LOOP_elec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ void LOOP_elec::solver(const int& istep,
227227
ELEC_scf es;
228228
es.scf(istep - 1, loc, lowf, *this->UHM);
229229
#ifdef __MPI
230-
if (GlobalC::exx_global.info.separate_loop, lowf.wfc_k_grid)
230+
if (GlobalC::exx_global.info.separate_loop)
231231
{
232232
for( size_t hybrid_step=0; hybrid_step!=GlobalC::exx_global.info.hybrid_step; ++hybrid_step )
233233
{

0 commit comments

Comments
 (0)