Skip to content

Commit 4c3d43b

Browse files
committed
docs: preserve generated INPUT metadata
1 parent d25e07b commit 4c3d43b

6 files changed

Lines changed: 140 additions & 11 deletions

File tree

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ build:
4242
-DGIT_SUBMODULE=OFF
4343
-DMKLROOT=OFF
4444
- cmake --build build-rtd-docs --target abacus_pw_ser --parallel 2
45-
- ./build-rtd-docs/abacus_pw_ser --generate-parameters-yaml > docs/parameters.yaml
45+
- ./build-rtd-docs/source/abacus_pw_ser --generate-parameters-yaml > docs/parameters.yaml
4646

4747
# Build documentation in the "docs/" directory with Sphinx
4848
sphinx:

docs/advanced/input_files/input-main.md

Lines changed: 46 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,12 @@
336336
- [rpa\_ccp\_rmesh\_times](#rpa_ccp_rmesh_times)
337337
- [exx\_symmetry\_realspace](#exx_symmetry_realspace)
338338
- [out\_ri\_cv](#out_ri_cv)
339+
- [out\_unshrinked\_v](#out_unshrinked_v)
340+
- [exx\_coul\_moment](#exx_coul_moment)
341+
- [exx\_rotate\_abfs](#exx_rotate_abfs)
342+
- [exx\_multip\_moments\_threshold](#exx_multip_moments_threshold)
343+
- [shrink\_abfs\_pca\_thr](#shrink_abfs_pca_thr)
344+
- [shrink\_lu\_inv\_thr](#shrink_lu_inv_thr)
339345
- [Exact Exchange (PW)](#exact-exchange-pw)
340346
- [exxace](#exxace)
341347
- [exx\_gamma\_extrapolation](#exx_gamma_extrapolation)
@@ -2247,23 +2253,23 @@
22472253

22482254
- **Type**: Boolean
22492255
- **Availability**: *Numerical atomic orbital basis (not gamma-only algorithm)*
2250-
- **Description**: Whether to print Hamiltonian matrices H(R) in npz format. This feature does not work for gamma-only calculations.
2256+
- **Description**: Whether to print Hamiltonian matrices H(R) in npz format. The output files are named output_HR0.npz, output_HR1.npz, and so on according to spin channel. This feature requires ABACUS to be built with CNPY.
22512257
- **Default**: False
22522258
- **Unit**: Ry
22532259

22542260
### out_hsr_npz
22552261

22562262
- **Type**: Boolean
22572263
- **Availability**: *Numerical atomic orbital basis (not gamma-only algorithm)*
2258-
- **Description**: Whether to print Hamiltonian matrices H(R) and overlap matrix S(R) in npz format. This feature does not work for gamma-only calculations.
2264+
- **Description**: Whether to print Hamiltonian matrices H(R) and overlap matrix S(R) in npz format. The output files are named output_SR.npz, output_HR0.npz, output_HR1.npz, and so on according to spin channel. This feature requires ABACUS to be built with CNPY.
22592265
- **Default**: False
22602266
- **Unit**: Ry
22612267

22622268
### out_dm_npz
22632269

22642270
- **Type**: Boolean
22652271
- **Availability**: *Numerical atomic orbital basis (not gamma-only algorithm)*
2266-
- **Description**: Whether to print density matrices DM(R) in npz format. This feature does not work for gamma-only calculations.
2272+
- **Description**: Whether to print density matrices DM(R) in npz format. The output files are named output_DM0.npz, output_DM1.npz, and so on according to spin channel. This feature requires ABACUS to be built with CNPY.
22672273
- **Default**: False
22682274

22692275
### out_mul
@@ -3295,6 +3301,42 @@
32953301
- **Description**: Whether to output the coefficient tensor C(R) and ABFs-representation Coulomb matrix V(R) for each atom pair and cell in real space.
32963302
- **Default**: false
32973303

3304+
### out_unshrinked_v
3305+
3306+
- **Type**: Boolean
3307+
- **Description**: Whether to output the large Vq matrix in the unshrinked auxiliary basis.
3308+
- **Default**: false
3309+
3310+
### exx_coul_moment
3311+
3312+
- **Type**: Boolean
3313+
- **Description**: Whether to use the moment method for Coulomb calculation.
3314+
- **Default**: false
3315+
3316+
### exx_rotate_abfs
3317+
3318+
- **Type**: Boolean
3319+
- **Description**: Whether to rotate the auxiliary basis for Coulomb calculation.
3320+
- **Default**: false
3321+
3322+
### exx_multip_moments_threshold
3323+
3324+
- **Type**: Real
3325+
- **Description**: Threshold to screen multipole moments in Coulomb calculation.
3326+
- **Default**: 1e-10
3327+
3328+
### shrink_abfs_pca_thr
3329+
3330+
- **Type**: Real
3331+
- **Description**: Threshold to shrink the auxiliary basis for GW/RPA calculations.
3332+
- **Default**: -1
3333+
3334+
### shrink_lu_inv_thr
3335+
3336+
- **Type**: Real
3337+
- **Description**: Threshold for obtaining the inverse of the overlap matrix by LU decomposition in the auxiliary-basis representation.
3338+
- **Default**: 1e-6
3339+
32983340
[back to top](#full-list-of-input-keywords)
32993341

33003342
## Exact Exchange (PW)
@@ -3377,6 +3419,7 @@
33773419
- berendsen: Berendsen thermostat, see md_nraise in detail.
33783420
- rescaling: velocity Rescaling method 1, see md_tolerance in detail.
33793421
- rescale_v: velocity Rescaling method 2, see md_nraise in detail.
3422+
- csvr: Canonical Sampling through Velocity Rescaling, see md_csvr_tau in detail.
33803423
- **Default**: nhc
33813424

33823425
### md_tfirst

docs/parameters.yaml

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,6 +1399,7 @@ parameters:
13991399
* berendsen: Berendsen thermostat, see md_nraise in detail.
14001400
* rescaling: velocity Rescaling method 1, see md_tolerance in detail.
14011401
* rescale_v: velocity Rescaling method 2, see md_nraise in detail.
1402+
* csvr: Canonical Sampling through Velocity Rescaling, see md_csvr_tau in detail.
14021403
default_value: nhc
14031404
unit: ""
14041405
availability: ""
@@ -3321,23 +3322,23 @@ parameters:
33213322
category: Output information
33223323
type: Boolean
33233324
description: |
3324-
Whether to print Hamiltonian matrices H(R) in npz format. This feature does not work for gamma-only calculations.
3325+
Whether to print Hamiltonian matrices H(R) in npz format. The output files are named output_HR0.npz, output_HR1.npz, and so on according to spin channel. This feature requires ABACUS to be built with CNPY.
33253326
default_value: "False"
33263327
unit: Ry
33273328
availability: Numerical atomic orbital basis (not gamma-only algorithm)
33283329
- name: out_hsr_npz
33293330
category: Output information
33303331
type: Boolean
33313332
description: |
3332-
Whether to print Hamiltonian matrices H(R) and overlap matrix S(R) in npz format. This feature does not work for gamma-only calculations.
3333+
Whether to print Hamiltonian matrices H(R) and overlap matrix S(R) in npz format. The output files are named output_SR.npz, output_HR0.npz, output_HR1.npz, and so on according to spin channel. This feature requires ABACUS to be built with CNPY.
33333334
default_value: "False"
33343335
unit: Ry
33353336
availability: Numerical atomic orbital basis (not gamma-only algorithm)
33363337
- name: out_dm_npz
33373338
category: Output information
33383339
type: Boolean
33393340
description: |
3340-
Whether to print density matrices DM(R) in npz format. This feature does not work for gamma-only calculations.
3341+
Whether to print density matrices DM(R) in npz format. The output files are named output_DM0.npz, output_DM1.npz, and so on according to spin channel. This feature requires ABACUS to be built with CNPY.
33413342
default_value: "False"
33423343
unit: ""
33433344
availability: Numerical atomic orbital basis (not gamma-only algorithm)
@@ -4314,6 +4315,54 @@ parameters:
43144315
default_value: "false"
43154316
unit: ""
43164317
availability: ""
4318+
- name: out_unshrinked_v
4319+
category: Exact Exchange (LCAO)
4320+
type: Boolean
4321+
description: |
4322+
Whether to output the large Vq matrix in the unshrinked auxiliary basis.
4323+
default_value: "false"
4324+
unit: ""
4325+
availability: ""
4326+
- name: exx_coul_moment
4327+
category: Exact Exchange (LCAO)
4328+
type: Boolean
4329+
description: |
4330+
Whether to use the moment method for Coulomb calculation.
4331+
default_value: "false"
4332+
unit: ""
4333+
availability: ""
4334+
- name: exx_rotate_abfs
4335+
category: Exact Exchange (LCAO)
4336+
type: Boolean
4337+
description: |
4338+
Whether to rotate the auxiliary basis for Coulomb calculation.
4339+
default_value: "false"
4340+
unit: ""
4341+
availability: ""
4342+
- name: exx_multip_moments_threshold
4343+
category: Exact Exchange (LCAO)
4344+
type: Real
4345+
description: |
4346+
Threshold to screen multipole moments in Coulomb calculation.
4347+
default_value: "1e-10"
4348+
unit: ""
4349+
availability: ""
4350+
- name: shrink_abfs_pca_thr
4351+
category: Exact Exchange (LCAO)
4352+
type: Real
4353+
description: |
4354+
Threshold to shrink the auxiliary basis for GW/RPA calculations.
4355+
default_value: "-1"
4356+
unit: ""
4357+
availability: ""
4358+
- name: shrink_lu_inv_thr
4359+
category: Exact Exchange (LCAO)
4360+
type: Real
4361+
description: |
4362+
Threshold for obtaining the inverse of the overlap matrix by LU decomposition in the auxiliary-basis representation.
4363+
default_value: "1e-6"
4364+
unit: ""
4365+
availability: ""
43174366
- name: dft_plus_u
43184367
category: DFT+U correction
43194368
type: Integer

source/source_io/module_parameter/read_input_item_exx_dftu.cpp

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,36 +567,72 @@ void ReadInput::item_exx()
567567
{
568568
Input_Item item("out_unshrinked_v");
569569
item.annotation = "whether to output the large Vq matrix in unshrinked auxiliary basis";
570+
item.category = "Exact Exchange (LCAO)";
571+
item.type = "Boolean";
572+
item.description = "Whether to output the large Vq matrix in the unshrinked auxiliary basis.";
573+
item.default_value = "false";
574+
item.unit = "";
575+
item.availability = "";
570576
read_sync_bool(input.out_unshrinked_v);
571577
this->add_item(item);
572578
}
573579
{
574580
Input_Item item("exx_coul_moment");
575581
item.annotation = "whether to use moment method for Coulomb calculation";
582+
item.category = "Exact Exchange (LCAO)";
583+
item.type = "Boolean";
584+
item.description = "Whether to use the moment method for Coulomb calculation.";
585+
item.default_value = "false";
586+
item.unit = "";
587+
item.availability = "";
576588
read_sync_bool(input.exx_coul_moment);
577589
this->add_item(item);
578590
}
579591
{
580592
Input_Item item("exx_rotate_abfs");
581593
item.annotation = "whether to rotate auxiliary basis for Coulomb calculation";
594+
item.category = "Exact Exchange (LCAO)";
595+
item.type = "Boolean";
596+
item.description = "Whether to rotate the auxiliary basis for Coulomb calculation.";
597+
item.default_value = "false";
598+
item.unit = "";
599+
item.availability = "";
582600
read_sync_bool(input.exx_rotate_abfs);
583601
this->add_item(item);
584602
}
585603
{
586604
Input_Item item("exx_multip_moments_threshold");
587605
item.annotation = "threshold to screen multipole moments in Coulomb calculation";
606+
item.category = "Exact Exchange (LCAO)";
607+
item.type = "Real";
608+
item.description = "Threshold to screen multipole moments in Coulomb calculation.";
609+
item.default_value = "1e-10";
610+
item.unit = "";
611+
item.availability = "";
588612
read_sync_double(input.exx_multip_moments_threshold);
589613
this->add_item(item);
590614
}
591615
{
592616
Input_Item item("shrink_abfs_pca_thr");
593617
item.annotation = "threshold to shrink auxiliary basis for GW/RPA";
618+
item.category = "Exact Exchange (LCAO)";
619+
item.type = "Real";
620+
item.description = "Threshold to shrink the auxiliary basis for GW/RPA calculations.";
621+
item.default_value = "-1";
622+
item.unit = "";
623+
item.availability = "";
594624
read_sync_double(input.shrink_abfs_pca_thr);
595625
this->add_item(item);
596626
}
597627
{
598628
Input_Item item("shrink_lu_inv_thr");
599629
item.annotation = "threshold to get inverse of overlap matrix by LU decomposition in auxiliary basis representation";
630+
item.category = "Exact Exchange (LCAO)";
631+
item.type = "Real";
632+
item.description = "Threshold for obtaining the inverse of the overlap matrix by LU decomposition in the auxiliary-basis representation.";
633+
item.default_value = "1e-6";
634+
item.unit = "";
635+
item.availability = "";
600636
read_sync_double(input.shrink_LU_inv_thr);
601637
this->add_item(item);
602638
}

source/source_io/module_parameter/read_input_item_md.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ void ReadInput::item_md()
8383
* anderson: Anderson thermostat, see md_nraise in detail.
8484
* berendsen: Berendsen thermostat, see md_nraise in detail.
8585
* rescaling: velocity Rescaling method 1, see md_tolerance in detail.
86-
* rescale_v: velocity Rescaling method 2, see md_nraise in detail.)";
86+
* rescale_v: velocity Rescaling method 2, see md_nraise in detail.
87+
* csvr: Canonical Sampling through Velocity Rescaling, see md_csvr_tau in detail.)";
8788
item.default_value = "nhc";
8889
item.unit = "";
8990
item.availability = "";

source/source_io/module_parameter/read_input_item_output.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ The circle order of the charge density on real space grids is: x is the outer lo
11871187
item.annotation = "output H(R) matrix in npz format";
11881188
item.category = "Output information";
11891189
item.type = "Boolean";
1190-
item.description = "Whether to print Hamiltonian matrices H(R) in npz format. This feature does not work for gamma-only calculations.";
1190+
item.description = "Whether to print Hamiltonian matrices H(R) in npz format. The output files are named output_HR0.npz, output_HR1.npz, and so on according to spin channel. This feature requires ABACUS to be built with CNPY.";
11911191
item.default_value = "False";
11921192
item.unit = "Ry";
11931193
item.availability = "Numerical atomic orbital basis (not gamma-only algorithm)";
@@ -1209,7 +1209,7 @@ The circle order of the charge density on real space grids is: x is the outer lo
12091209
item.annotation = "output H(R) and S(R) matrices in npz format";
12101210
item.category = "Output information";
12111211
item.type = "Boolean";
1212-
item.description = "Whether to print Hamiltonian matrices H(R) and overlap matrix S(R) in npz format. This feature does not work for gamma-only calculations.";
1212+
item.description = "Whether to print Hamiltonian matrices H(R) and overlap matrix S(R) in npz format. The output files are named output_SR.npz, output_HR0.npz, output_HR1.npz, and so on according to spin channel. This feature requires ABACUS to be built with CNPY.";
12131213
item.default_value = "False";
12141214
item.unit = "Ry";
12151215
item.availability = "Numerical atomic orbital basis (not gamma-only algorithm)";
@@ -1231,7 +1231,7 @@ The circle order of the charge density on real space grids is: x is the outer lo
12311231
item.annotation = "output DM(R) matrix in npz format";
12321232
item.category = "Output information";
12331233
item.type = "Boolean";
1234-
item.description = "Whether to print density matrices DM(R) in npz format. This feature does not work for gamma-only calculations.";
1234+
item.description = "Whether to print density matrices DM(R) in npz format. The output files are named output_DM0.npz, output_DM1.npz, and so on according to spin channel. This feature requires ABACUS to be built with CNPY.";
12351235
item.default_value = "False";
12361236
item.unit = "";
12371237
item.availability = "Numerical atomic orbital basis (not gamma-only algorithm)";

0 commit comments

Comments
 (0)