Skip to content

Commit 3449225

Browse files
committed
Fix pw_diag_nmax default value
1 parent 10ba137 commit 3449225

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

docs/parameters.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -940,9 +940,9 @@ parameters:
940940
type: Integer
941941
description: |
942942
Only useful when you use ks_solver = cg/dav/dav_subspace/bpcg. It indicates the maximal iteration number for cg/david/dav_subspace/bpcg method.
943-
default_value: "40"
943+
default_value: "50"
944944
unit: ""
945-
availability: ""
945+
availability: "basis_type==pw, ks_solver== cg/dav/dav_subspace/bpcg"
946946
- name: pw_diag_ndim
947947
category: Plane wave related variables
948948
type: Integer

source/source_io/module_parameter/input_parameter.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ struct Input_para
8383
bool pseudo_mesh = false; ///< 0: use msh to normalize radial wave functions; 1:
8484
///< use mesh, which is used in QE.
8585
int nspin = 1; ///< LDA ; LSDA ; non-linear spin
86-
int pw_diag_nmax = 50;
86+
int pw_diag_nmax = 50; ///< max number of iterations for pw diagonalization
8787
double pw_diag_thr = 0.01; ///< used in cg method
8888
bool diago_smooth_ethr = false; ///< smooth ethr for iter methods
8989
int pw_diag_ndim = 4; ///< dimension of workspace for Davidson diagonalization
@@ -368,12 +368,12 @@ struct Input_para
368368
= {}; ///< the number of basis functions for each atom type used in FHI-aims (for benchmark)
369369
// ============== #Parameters (11.Output) ===========================
370370
bool out_stru = false; ///< outut stru file each ion step
371-
int out_freq_elec = 0; ///< print information every few electronic steps
372-
int out_freq_ion = 0; ///< print information every few ionic steps
371+
int out_freq_elec = 0; ///< print information every few electronic steps
372+
int out_freq_ion = 0; ///< print information every few ionic steps
373373
int out_freq_td = 0; ///< print information every few completed electronic iterations in RT-TDDFT
374374
std::vector<int> out_chg = {0, 3}; ///< output charge density. 0: no; 1: yes
375375
std::vector<int> out_xc_r = {-1, 3}; ///< output xc(r). -1: no; >=0: output the order of xc(r)
376-
std::vector<int> out_pot = {0, 8}; ///< output potential
376+
std::vector<int> out_pot = {0, 8}; ///< output potential
377377
int out_wfc_pw = 0; ///< 0: no; 1: txt; 2: dat
378378
std::vector<int> out_band = {0, 8}; ///< band calculation pengfei 2014-10-13
379379
int out_dos = 0; ///< dos calculation. mohan add 20090909

source/source_io/module_parameter/read_input_item_elec_stru.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,9 +1094,9 @@ Use case: When experimental or high-level theoretical results suggest that the S
10941094
item.category = "Plane wave related variables";
10951095
item.type = "Integer";
10961096
item.description = "Only useful when you use ks_solver = cg/dav/dav_subspace/bpcg. It indicates the maximal iteration number for cg/david/dav_subspace/bpcg method.";
1097-
item.default_value = "40";
1097+
item.default_value = "50";
10981098
item.unit = "";
1099-
item.availability = "";
1099+
item.availability = "basis_type==pw, ks_solver==cg/dav/dav_subspace/bpcg";
11001100
read_sync_int(input.pw_diag_nmax);
11011101
this->add_item(item);
11021102
}

0 commit comments

Comments
 (0)