Skip to content

Commit 0141d58

Browse files
Merge remote-tracking branch 'upstream/develop' into develop
2 parents 964d4b6 + b554f40 commit 0141d58

File tree

1,434 files changed

+12662
-5772
lines changed

Some content is hidden

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

1,434 files changed

+12662
-5772
lines changed

CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ if(ENABLE_LCAO)
252252
add_compile_definitions(__PEXSI)
253253
set(CMAKE_CXX_STANDARD 14)
254254
endif()
255-
if(NEW_GINT)
256-
add_compile_definitions(__NEW_GINT)
255+
if(OLD_GINT)
256+
add_compile_definitions(__OLD_GINT)
257257
endif()
258258
else()
259259
set(ENABLE_MLALGO OFF)
@@ -735,9 +735,9 @@ target_link_libraries(
735735
hsolver
736736
elecstate
737737
hamilt_general
738-
hamilt_pwdft
739-
hamilt_ofdft
740-
hamilt_stodft
738+
module_pwdft
739+
module_ofdft
740+
module_stodft
741741
psi
742742
psi_initializer
743743
psi_overall_init

docs/CONTRIBUTING.md

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,38 +54,36 @@ For those who are interested in the source code, the following figure shows the
5454
| |-- module_neighbor The module for finding the neighbors of each atom in the unit cell.
5555
| |-- module_paw The module for performing PAW calculations.
5656
| |-- module_symmetry The module for finding the symmetry operations of the unit cell.
57-
|-- source_estate The module for defining the electronic state and its operations.
57+
|-- source_estate The module for defining the electronic state and its operations.
5858
| |-- module_charge The module for calculating the charge density, charge mixing
5959
| |-- potentials The module for calculating the potentials, including Hartree, exchange-correlation, local pseudopotential, etc.
6060
|-- source_esolver The module defining task-specific driver of corresponding workflow for evaluating energies, forces, etc., including lj, dp, ks, sdft, ofdft, etc.
6161
| | TDDFT, Orbital-free DFT, etc.
62-
|-- source_hamilt The module for defining general Hamiltonian that can be used both in PW and LCAO calculations.
62+
|-- source_hamilt The module for defining general Hamiltonian that can be used both in PW and LCAO calculations.
6363
| |-- module_ewald The module for calculating the Ewald summation.
6464
| |-- module_surchem The module for calculating the surface charge correction.
6565
| |-- module_vdw The module for calculating the van der Waals correction.
6666
| |-- module_xc The module for calculating the exchange-correlation energy and potential.
67-
|-- module_hamilt_lcao The module for defining the Hamiltonian in LCAO calculations.
67+
|-- source_lcao The module for defining the Hamiltonian in LCAO calculations.
6868
| |-- hamilt_lcaodft The module for defining the Hamiltonian in LCAO-DFT calculations.
6969
| | |-- operator_lcao The module for defining the operators in LCAO-DFT calculations.
7070
| |-- module_deepks The module for defining the Hamiltonian in DeepKS calculations.
7171
| |-- module_dftu The module for defining the Hamiltonian in DFT+U calculations.
7272
| |-- module_gint The module for performing grid integral in LCAO calculations.
7373
| |-- module_hcontainer The module for storing the Hamiltonian matrix in LCAO calculations.
74-
| `-- module_tddft The module for defining the Hamiltonian in TDDFT calculations.
75-
|-- source_pw The module for defining the Hamiltonian in PW calculations.
76-
| |-- hamilt_ofdft The module for defining the Hamiltonian in OFDFT calculations.
77-
| |-- hamilt_pwdft The module for defining the Hamiltonian in PW-DFT calculations.
74+
| |-- module_rt The module for defining the Hamiltonian in TDDFT calculations.
75+
| `-- module_ri The module for performing RI calculations.
76+
|-- source_pw The module for defining the Hamiltonian in PW calculations.
77+
| |-- module_ofdft The module for defining the Hamiltonian in OFDFT calculations.
78+
| |-- module_pwdft The module for defining the Hamiltonian in PW-DFT calculations.
7879
| | |-- operator_pw The module for defining the operators in PW-DFT calculations.
79-
| `-- hamilt_stodft The module for defining the Hamiltonian in STODFT calculations.
80+
| `-- module_stodft The module for defining the Hamiltonian in STODFT calculations.
8081
|-- source_hsolver The module for solving the Hamiltonian with different diagonalization methods, including CG, Davidson in PW
8182
| | calculations, and scalapack and genelpa in LCAO calculations.
82-
|-- module_io The module for reading of INPUT files and output properties including band structure, density of states, charge density, etc.
83-
|-- module_md The module for performing molecular dynamics.
83+
|-- source_io The module for reading of INPUT files and output properties including band structure, density of states, charge density, etc.
84+
|-- source_md The module for performing molecular dynamics.
8485
|-- source_psi The module for defining the wave function and its operations.
85-
|-- module_relax The module for performing structural optimization.
86-
| |-- relax_new The module for performing structural optimization with new algorithm, optimized for cell and ion simultaneously.
87-
| `-- relax_old The module for performing structural optimization with old algorithm, optimized for cell and ion separately.
88-
|-- module_ri The module for performing RI calculations.
86+
`-- source_relax The module for performing structural optimization, optimized for cell and ion simultaneously.
8987
```
9088

9189
## Submitting an Issue
@@ -101,7 +99,7 @@ For comments that need to be shown in documents, these formats should be used --
10199

102100
A helpful VS Code extension -- [Doxygen Documentation Generator](https://marketplace.visualstudio.com/items?itemName=cschlosser.doxdocgen), can help you formating comments.
103101

104-
An practical example is class [LCAO_Deepks](https://github.com/deepmodeling/abacus-develop/blob/deepks/source/module_hamilt_lcao/module_deepks/LCAO_deepks.h), the effects can be seen on [readthedocs page](https://abacus-deepks.readthedocs.io/en/latest/DeePKS_API/classLCAO__Descriptor.html#exhale-class-classLCAO-Descriptor)
102+
An practical example is class [LCAO_Deepks](https://github.com/deepmodeling/abacus-develop/blob/deepks/source/source_lcao/module_deepks/LCAO_deepks.h), the effects can be seen on [readthedocs page](https://abacus-deepks.readthedocs.io/en/latest/DeePKS_API/classLCAO__Descriptor.html#exhale-class-classLCAO-Descriptor)
105103

106104
- Tips
107105
- Only comments in .h file will be visible in generated by Doxygen + Sphinx;
Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
# Extracting Wave Functions
22

3-
ABACUS is able to output electron wave functions in both PW and LCAO basis calculations. One can find the examples in [examples/wfc](https://github.com/deepmodeling/abacus-develop/tree/develop/examples/wfc).
3+
ABACUS is able to output electron wave functions in both PW and LCAO basis calculations. One can find the examples in [examples/11_wfc](https://github.com/deepmodeling/abacus-develop/tree/develop/examples/11_wfc).
44

5-
## wave function in G space
6-
For the wave function in G space, one only needs to do a ground-state energy calculation with one additional keyword in the INPUT file: '***[out_wfc_pw](https://abacus-rtd.readthedocs.io/en/latest/advanced/input_files/input-main.html#out-wfc-pw)***' for PW basis calculation, and '***[out_wfc_lcao](https://abacus-rtd.readthedocs.io/en/latest/advanced/input_files/input-main.html#out-wfc-lcao)***' for LCAO basis calculation.
7-
In the PW basis case, the wave function is output in a file called `WAVEFUNC${k}.txt`, where `${k}` is the index of K point. \
8-
In the LCAO basis case, several `WFC_NAO_K${k}.dat` files will be output in multi-k calculation and `WFC_NAO_GAMMA1.dat` in gamma-only calculation.
5+
## Wave Function in G-Space
96

10-
## wave function in real space
7+
To output wave functions in G-space, add one of the following keywords to the `INPUT` file while performing SCF calculation:
8+
- **PW basis**: Set [`out_wfc_pw`](https://abacus-rtd.readthedocs.io/en/latest/advanced/input_files/input-main.html#out-wfc-pw) to `1`. Output file format: `wfs[spin]k[kpoint]_pw.txt`, where `[spin]` is the spin channel index, and `[kpoint]` the k-point index.
119

12-
One can also choose to output real-space wave function in PW basis calculation with the key word ***[out_wfc_norm](https://abacus-rtd.readthedocs.io/en/latest/advanced/input_files/input-main.html#out-wfc-norm)***.
10+
- **LCAO basis**: Set [`out_wfc_lcao`](https://abacus-rtd.readthedocs.io/en/latest/advanced/input_files/input-main.html#out-wfc-lcao) to `1`.
11+
- **Multi-k calculations**: Generates multiple files `wfs[spin]k[kpoint]_nao.txt`.
12+
- **Gamma-only calculations**: `wfs[spin]_nao.txt` instead.
1313

14-
Notice: when the ***[basis_type](https://abacus-rtd.readthedocs.io/en/latest/advanced/input_files/input-main.html#basis_type)*** is `lcao`, only `get_wf` ***[calculation](https://abacus-rtd.readthedocs.io/en/latest/advanced/input_files/input-main.html#calculation)*** is effective. An example is [examples/wfc/lcao_ienvelope_Si2](https://github.com/deepmodeling/abacus-develop/tree/develop/examples/wfc/lcao_ienvelope_Si2).
14+
## Wave Function in Real Space
15+
16+
One can also choose to output real-space wave functions with the keyword [`out_wfc_norm`](https://abacus-rtd.readthedocs.io/en/latest/advanced/input_files/input-main.html#out-wfc-norm) or [`out_wfc_re_im`](https://abacus-rtd.readthedocs.io/en/latest/advanced/input_files/input-main.html#out-wfc-re-im).
17+
18+
Notice: When the [`basis_type`](https://abacus-rtd.readthedocs.io/en/latest/advanced/input_files/input-main.html#basis-type) is `lcao`, only `get_wf` [`calculation`](https://abacus-rtd.readthedocs.io/en/latest/advanced/input_files/input-main.html#calculation) is effective. An example is [examples/11_wfc/lcao_ienvelope_Si2](https://github.com/deepmodeling/abacus-develop/tree/develop/examples/11_wfc/lcao_ienvelope_Si2).

0 commit comments

Comments
 (0)