Skip to content

Commit

Permalink
Update faq.md (#2581)
Browse files Browse the repository at this point in the history
for nbands setting.

Co-authored-by: Mohan Chen <[email protected]>
  • Loading branch information
ouqi0711 and mohanchen authored Jun 4, 2023
1 parent 2a89e7b commit e0f2c99
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/community/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ Run `/usr/bin/time -v mpirun -n 4 abacus`, and locate "Maximum resident set size

The tag `smearing_sigma` is used for SCF calculation, and does not affect NSCF calculation. The tag `dos_smearing` is only used for plotting density of states, which does affect SCF or NSCF results. So `smearing_sigma` should not be set in dos calculation.

**11. How to set `nbands` and `ncpus`?**

For both pw and LCAO calculations, the default value for `nbands` can be found [here](https://abacus.deepmodeling.com/en/latest/advanced/input_files/input-main.html#nbands). Note that the number of CPUs called for a parallel job (i.e., the number specified after the command `mpirun -n`) should be smaller than `nbands`, otherwise the job will fail with an error message `nbands < ncpus`. Note also that for LCAO calculations, `nbands` should always be smaller than `nlocal`, i.e., the number of the atomic orbital basis of the system.

[back to top](#frequently-asked-questions)

Expand Down

0 comments on commit e0f2c99

Please sign in to comment.