Skip to content

Commit 5efd509

Browse files
authored
Merge branch 'develop' into test_pre_commit
2 parents 6c27245 + 203c66d commit 5efd509

File tree

669 files changed

+15971
-14356
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

669 files changed

+15971
-14356
lines changed

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
env:
2626
OMP_NUM_THREADS: 1
2727
run: |
28-
cmake --build build --target test ARGS="-V --timeout 21600"
28+
cmake --build build --target test ARGS="-V --timeout 21600" || exit 0
2929
- name: Upload Coverage to Codecov
3030
uses: codecov/codecov-action@v4
3131
if: ${{ ! cancelled() }}

docs/advanced/input_files/input-main.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@
423423
- [pexsi\_zero\_thr](#pexsi_zero_thr)
424424
- [Linear Response TDDFT](#linear-response-tddft)
425425
- [xc\_kernel](#xc_kernel)
426+
- [lr\_init\_xc\_kernel](#lr_init_xc_kernel)
426427
- [lr\_solver](#lr_solver)
427428
- [lr\_thr](#lr_thr)
428429
- [nocc](#nocc)
@@ -1176,7 +1177,7 @@ Note: In new angle mixing, you should set `mixing_beta_mag >> mixing_beta`. The
11761177

11771178
- **Type**: Integer
11781179
- **Description**: Print out energy for each band for every printe step
1179-
- **Default**: 100
1180+
- **Default**: `scf_nmax`
11801181

11811182
### scf_nmax
11821183

@@ -1389,7 +1390,7 @@ These variables are used to control the geometry relaxation.
13891390

13901391
- **Type**: Integer
13911392
- **Description**: The maximal number of ionic iteration steps, the minimum value is 1.
1392-
- **Default**: 1
1393+
- **Default**: 1 for SCF, 50 for relax and cell-relax calcualtions
13931394

13941395
### relax_cg_thr
13951396

@@ -2925,7 +2926,7 @@ These variables are used to control DFT+U correlated parameters
29252926

29262927
- where $\gamma$ is a parameter that adjusts the relative weight of the error function to the derivative error function.
29272928
- **Unit**: Bohr
2928-
- **Default**: 5.0
2929+
- **Default**: 3.0
29292930

29302931
[back to top](#full-list-of-input-keywords)
29312932

@@ -3943,6 +3944,15 @@ These parameters are used to solve the excited states using. e.g. LR-TDDFT.
39433944
Currently supported: `RPA`, `LDA`, `PBE`, `HSE`, `HF`.
39443945
- **Default**: LDA
39453946

3947+
### lr_init_xc_kernel
3948+
3949+
- **Type**: String
3950+
- **Description**: The method to initalize the xc kernel.
3951+
- "default": Calculate xc kerenel ($f_\text{xc}$) from the ground-state charge density.
3952+
- "file": Read the xc kernel $f_\text{xc}$ on grid from the provided files. The following words should be the paths of ".cube" files, where the first 1 (*[nspin](#nspin)==1*) or 3 (*[nspin](#nspin)==2*, namely spin-aa, spin-ab and spin-bb) will be read in. The parameter [xc_kernel](#xc_kernel) will be invalid. Now only LDA-type kernel is supproted as the potential will be calculated by directly multiplying the transition density.
3953+
- "from_charge_file": Calculate fxc from the charge density read from the provided files. The following words should be the paths of ".cube" files, where the first [nspin]($nspin) files will be read in.
3954+
- **Default**: "default"
3955+
39463956
### lr_solver
39473957

39483958
- **Type**: String

examples/band/lcao_Si2/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ if [[ ! -f scf.output ]] ||
1919
[[ ! ( "$(tail -1 OUT.ABACUS/running_scf.log)" == " Total Time :"* ) ]] ||
2020
[[ ! ( "$(tail -1 OUT.ABACUS/running_nscf.log)" == " Total Time :"* ) ]]
2121
then
22-
echo "job is failed!"
22+
echo "job failed!"
2323
exit 1
2424
else
25-
echo "job is successed!"
25+
echo "job succeeded!"
2626
exit 0
2727
fi
2828

examples/band/pw_Al/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ if [[ ! -f scf.output ]] ||
1919
[[ ! ( "$(tail -1 OUT.ABACUS/running_scf.log)" == " Total Time :"* ) ]] ||
2020
[[ ! ( "$(tail -1 OUT.ABACUS/running_nscf.log)" == " Total Time :"* ) ]]
2121
then
22-
echo "job is failed!"
22+
echo "job failed!"
2323
exit 1
2424
else
25-
echo "job is successed!"
25+
echo "job succeeded!"
2626
exit 0
2727
fi

examples/berryphase/lcao_PbTiO3/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ if [[ ! -f scf.output ]] ||
2121
[[ ! ( "$(tail -1 OUT.ABACUS/running_scf.log)" == " Total Time :"* ) ]] ||
2222
[[ ! ( "$(tail -1 OUT.ABACUS/running_nscf.log)" == " Total Time :"* ) ]]
2323
then
24-
echo "job is failed!"
24+
echo "job failed!"
2525
exit 1
2626
else
27-
echo "job is successed!"
27+
echo "job succeeded!"
2828
exit 0
2929
fi

examples/berryphase/pw_PbTiO3/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ if [[ ! -f scf.output ]] ||
1919
[[ ! ( "$(tail -1 OUT.ABACUS/running_scf.log)" == " Total Time :"* ) ]] ||
2020
[[ ! ( "$(tail -1 OUT.ABACUS/running_nscf.log)" == " Total Time :"* ) ]]
2121
then
22-
echo "job is failed!"
22+
echo "job failed!"
2323
exit 1
2424
else
25-
echo "job is successed!"
25+
echo "job succeeded!"
2626
exit 0
2727
fi

examples/bravais_lattice/fcc_SiO2/INPUT

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@ INPUT_PARAMETERS
33
pseudo_dir ../../../tests/PP_ORB
44
calculation scf
55
#Parameters (Accuracy)
6-
ecutwfc 50
6+
ecutwfc 60 ###Energy cutoff needs to be tested to ensure your calculation is reliable.[1]
77
scf_thr 1e-8
88
scf_nmax 20
99
basis_type pw
1010
latname fcc
11+
12+
13+
### [1] Energy cutoff determines the quality of numerical quadratures in your calculations.
14+
### So it is strongly recommended to test whether your result (such as converged SCF energies) is
15+
### converged with respect to the energy cutoff.

examples/bravais_lattice/fcc_SiO2/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ if [[ ! -f output ]] ||
1010
[[ ! -f OUT.ABACUS/running_scf.log ]] ||
1111
[[ ! ( "$(tail -1 OUT.ABACUS/running_scf.log)" == " Total Time :"* ) ]]
1212
then
13-
echo "job is failed!"
13+
echo "job failed!"
1414
exit 1
1515
else
16-
echo "job is successed!"
16+
echo "job succeeded!"
1717
exit 0
1818
fi

examples/bravais_lattice/hexagonal_MoS2/INPUT

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@ INPUT_PARAMETERS
33
pseudo_dir ../../../tests/PP_ORB
44
calculation scf
55
#Parameters (Accuracy)
6-
ecutwfc 50
6+
ecutwfc 60 ###Energy cutoff needs to be tested to ensure your calculation is reliable.[1]
77
scf_thr 1e-8
88
scf_nmax 20
99
smearing_sigma 0.002
1010
basis_type pw
1111
latname hexagonal
12+
13+
14+
### [1] Energy cutoff determines the quality of numerical quadratures in your calculations.
15+
### So it is strongly recommended to test whether your result (such as converged SCF energies) is
16+
### converged with respect to the energy cutoff.

examples/bravais_lattice/hexagonal_MoS2/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ if [[ ! -f output ]] ||
1010
[[ ! -f OUT.ABACUS/running_scf.log ]] ||
1111
[[ ! ( "$(tail -1 OUT.ABACUS/running_scf.log)" == " Total Time :"* ) ]]
1212
then
13-
echo "job is failed!"
13+
echo "job failed!"
1414
exit 1
1515
else
16-
echo "job is successed!"
16+
echo "job succeeded!"
1717
exit 0
1818
fi

0 commit comments

Comments
 (0)