You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix a bug when init_wfc=nao in pw basis for nspin=4
* update cell-relax output format, including rename the output STRU files
* remove useless words
* update documents
* update STRU output, the final one is named STRU_FINAL
* update out_stru command
* update
* update out_stru options (3 now)
* update fix bug in unitcell_test.cpp
* remove PARAM in relax_driver.cpp
* fix docs
* fix docs
* update docs
---------
Co-authored-by: abacus_fixer <mohanchen@pku.eud.cn>
Copy file name to clipboardExpand all lines: docs/advanced/input_files/input-main.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1782,7 +1782,7 @@
1782
1782
### out_freq_ion
1783
1783
1784
1784
-**Type**: Integer
1785
-
-**Description**: Controls the output interval in ionic steps. When set to a positive integer, information such as charge density, local potential, electrostatic potential, Hamiltonian matrix, overlap matrix, density matrix, and Mulliken population analysis is printed every n ionic steps.
1785
+
-**Description**: Controls the output interval in ionic steps. When set to a positive integer, information such as charge density, local potential, electrostatic potential, Hamiltonian matrix, overlap matrix, density matrix, Mulliken population analysis, and structure files (STRU{istep} or STRU{istep}.cif, when out_stru is 1 or 2) is printed every n ionic steps.
1786
1786
1787
1787
> Note: In RT-TDDFT calculations, this parameter is inactive; output frequency is instead controlled by out_freq_td.
1788
1788
-**Default**: 0
@@ -1969,9 +1969,13 @@
1969
1969
1970
1970
### out_stru
1971
1971
1972
-
-**Type**: Boolean
1973
-
-**Description**: Whether to output structure files per ionic step in geometry relaxation calculations into OUT.{istep}_D, where ${istep} is the ionic step.
1974
-
-**Default**: False
1972
+
-**Type**: Integer
1973
+
-**Description**: Controls the output of structure files per ionic step in geometry relaxation calculations. The files are written to the OUT.{suffix}/ directory. Each file corresponds to the structure at RELAX STEP ${istep}, i.e., the structure for which that step's energy was computed (before the relax move), and includes a header comment with the ABACUS version, timestamp, energy, and stress tensor. When out_freq_ion is positive, the numbered files STRU{istep} (or STRU{istep}.cif) are written every out_freq_ion steps; when out_freq_ion is 0, no numbered files are output.
1974
+
- 0: No structure files are output.
1975
+
- 1: ABACUS STRU format files are output. The latest structure is written to STRU_NOW (overwritten each step), the numbered file STRU{istep} (e.g., STRU1, STRU2) is written every out_freq_ion steps (when out_freq_ion is positive), and the final converged structure is written to STRU_FINAL. No CIF files are output.
1976
+
- 2: CIF format files are output. The latest structure is written to STRU_NOW.cif (overwritten each step), the numbered file STRU{istep}.cif (e.g., STRU1.cif, STRU2.cif) is written every out_freq_ion steps (when out_freq_ion is positive), and the final converged structure is written to STRU_FINAL.cif. No non-CIF files are output.
1977
+
> Note: For backward compatibility, true/false (case insensitive) are accepted and converted to 1/0.
Copy file name to clipboardExpand all lines: docs/advanced/input_files/stru.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,10 +116,10 @@ For general usage requirements, the APNSv1.0 pseudopotential and orbital set is
116
116
117
117
### LATTICE_CONSTANT
118
118
119
-
The lattice constant of the system in unit of Bohr.
119
+
The lattice constant of the system in unit of Bohr. In output structure files (e.g., `STRU`, `STRU1`, `STRU2`), a trailing comment `# in Bohr` is appended to the value line.
120
120
### LATTICE_VECTORS
121
121
122
-
The lattice vectors of the unit cell. It is a 3by3 matrix written in 3 lines. Please note that *the lattice vectors given here are scaled by the lattice constant*. This section must be removed if the type Bravais lattice is specified using the input parameter `latname`. (See [input parameters](input-main.md#latname).)
122
+
The lattice vectors of the unit cell. It is a 3by3 matrix written in 3 lines. Please note that *the lattice vectors given here are scaled by the lattice constant*. This section must be removed if the type Bravais lattice is specified using the input parameter `latname`. (See [input parameters](input-main.md#latname).) In output structure files, a trailing comment `# in units of lat0` is appended to the section header.
123
123
### LATTICE_PARAMETERS
124
124
125
125
This section is only relevant when `latname` (see [input parameters](input-main.md#latname)) is used to specify the Bravais lattice type. The example above is a fcc lattice, where no additional information except the lattice constant is required to determine the geometry of the lattice.
Copy file name to clipboardExpand all lines: docs/parameters.yaml
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2816,7 +2816,7 @@ parameters:
2816
2816
category: Output information
2817
2817
type: Integer
2818
2818
description: |
2819
-
Controls the output interval in ionic steps. When set to a positive integer, information such as charge density, local potential, electrostatic potential, Hamiltonian matrix, overlap matrix, density matrix, and Mulliken population analysis is printed every n ionic steps.
2819
+
Controls the output interval in ionic steps. When set to a positive integer, information such as charge density, local potential, electrostatic potential, Hamiltonian matrix, overlap matrix, density matrix, Mulliken population analysis, and structure files (STRU{istep} or STRU{istep}.cif, when out_stru is 1 or 2) is printed every n ionic steps.
2820
2820
2821
2821
[NOTE] In RT-TDDFT calculations, this parameter is inactive; output frequency is instead controlled by out_freq_td.
2822
2822
default_value: "0"
@@ -3024,10 +3024,14 @@ parameters:
3024
3024
availability: ""
3025
3025
- name: out_stru
3026
3026
category: Output information
3027
-
type: Boolean
3027
+
type: Integer
3028
3028
description: |
3029
-
Whether to output structure files per ionic step in geometry relaxation calculations into OUT.{istep}_D, where ${istep} is the ionic step.
3030
-
default_value: "False"
3029
+
Controls the output of structure files per ionic step in geometry relaxation calculations. The files are written to the OUT.{suffix}/ directory. Each file corresponds to the structure at RELAX STEP ${istep}, i.e., the structure for which that step's energy was computed (before the relax move), and includes a header comment with the ABACUS version, timestamp, energy, and stress tensor. When out_freq_ion is positive, the numbered files STRU{istep} (or STRU{istep}.cif) are written every out_freq_ion steps; when out_freq_ion is 0, no numbered files are output.
3030
+
- 0: No structure files are output.
3031
+
- 1: ABACUS STRU format files are output. The latest structure is written to STRU_NOW (overwritten each step), the numbered file STRU{istep} (e.g., STRU1, STRU2) is written every out_freq_ion steps (when out_freq_ion is positive), and the final converged structure is written to STRU_FINAL. No CIF files are output.
3032
+
- 2: CIF format files are output. The latest structure is written to STRU_NOW.cif (overwritten each step), the numbered file STRU{istep}.cif (e.g., STRU1.cif, STRU2.cif) is written every out_freq_ion steps (when out_freq_ion is positive), and the final converged structure is written to STRU_FINAL.cif. No non-CIF files are output.
3033
+
[NOTE] For backward compatibility, true/false (case insensitive) are accepted and converted to 1/0.
Copy file name to clipboardExpand all lines: docs/quick_start/hands_on.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -211,7 +211,7 @@ stress_thr 5 # the threshold of the stress convergence, in unit of kBar
211
211
relax_nmax 100 # the maximal number of ionic iteration steps
212
212
out_stru 1
213
213
```
214
-
Use the same `KPT`, `STRU`, pseudopotential, and orbital files as in the above SCF-LCAO example. The final optimized structure can be found in `STRU_NOW.cif` and `OUT.MgO/running_cell-relax.log`.
214
+
Use the same `KPT`, `STRU`, pseudopotential, and orbital files as in the above SCF-LCAO example. The final optimized structure can be found in `STRU_FINAL` and `OUT.MgO/running_cell-relax.log`.
215
215
216
216
### A quick PW example
217
217
@@ -232,4 +232,4 @@ relax_nmax 100 # the maximal number of ionic iteration steps
232
232
out_stru 1
233
233
```
234
234
235
-
Use the same `KPT`, `STRU`, and pseudopotential files as in the above SCF-PW examples. The final optimized structure can be found in `STRU_NOW.cif` and `STRU_ION_D` with different format.
235
+
Use the same `KPT`, `STRU`, and pseudopotential files as in the above SCF-PW examples. The final optimized structure can be found in `STRU_FINAL` and `STRU` with different format.
0 commit comments