Skip to content

Commit f6e057c

Browse files
committed
fix the default value of exx parameters
1 parent 342be71 commit f6e057c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

source/module_io/read_input_item_exx_dftu.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void ReadInput::item_exx()
8888
read_sync_string(input.exx_real_number);
8989
item.reset_value = [](const Input_Item& item, Parameter& para) {
9090
if (para.input.exx_real_number == "default")
91-
{
91+
{ // to run through here, the default value of para.input.exx_real_number should be "default"
9292
if (para.input.gamma_only)
9393
{
9494
para.input.exx_real_number = "1";
@@ -181,7 +181,7 @@ void ReadInput::item_exx()
181181
read_sync_string(input.exx_ccp_rmesh_times);
182182
item.reset_value = [](const Input_Item& item, Parameter& para) {
183183
if (para.input.exx_ccp_rmesh_times == "default")
184-
{
184+
{ // to run through here, the default value of para.input.exx_ccp_rmesh_times should be "default"
185185
std::string& dft_functional = para.input.dft_functional;
186186
std::string dft_functional_lower = dft_functional;
187187
std::transform(dft_functional.begin(), dft_functional.end(), dft_functional_lower.begin(), tolower);

source/module_parameter/input_parameter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ struct Input_para
470470
double exx_mixing_beta = 1.0; ///< mixing_beta for outer-loop when exx_separate_loop=1
471471
double exx_lambda = 0.3; ///< used to compensate for divergence points at G=0 in the
472472
///< evaluation of Fock exchange using lcao_in_pw method
473-
std::string exx_real_number = "0"; ///< exx calculated in real or complex
473+
std::string exx_real_number = "default"; ///< exx calculated in real or complex
474474
double exx_pca_threshold = 0.0001; ///< threshold to screen on-site ABFs in exx
475475
double exx_c_threshold = 0.0001; ///< threshold to screen C matrix in exx
476476
double exx_v_threshold = 0.1; ///< threshold to screen C matrix in exx
@@ -485,7 +485,7 @@ struct Input_para
485485
///< inequality
486486
double exx_cauchy_stress_threshold = 1e-07; ///< threshold to screen exx stress using Cauchy-Schwartz
487487
///< inequality
488-
std::string exx_ccp_rmesh_times = "1"; ///< how many times larger the radial mesh required for
488+
std::string exx_ccp_rmesh_times = "default"; ///< how many times larger the radial mesh required for
489489
///< calculating Columb potential is to that of atomic orbitals
490490
std::string exx_distribute_type = "htime"; ///< distribute type (assuming default as no specific value
491491
///< provided)

0 commit comments

Comments
 (0)