Skip to content

Commit 672301a

Browse files
authored
Refactor: rearrange code files paths for module hamiltonian, decompose to "general", "pw", "lcao" 3 parts. (#1826)
* Refactor: move klist.cpp from src_pw to module_cell * Refactor: divided module_hamilt to 5 parts: hamilt_general, hamilt_pwdft, hamilt_lcao, hamilt_ofdft, hamilt_stodft * Refactor: merge hamilt_pwdft, hamilt_ofdft, hamilt_stodft to one directory: hamilt_pw * Fix: compiling without lcao * Refactor: move charge, charge_mixing, charge_extra from src_pw to module_elecstate/module_charge * Refactor: move stress code for ESolver_KS_PW from src_pw to hamilt_pw/hamilt_pwdft * Refactor: rename source/hamilt_xx to source/module_hamilt_xx * Refactor: move sto_xx from src_pw/ to module_hamilt_pw/hamilt_stodft/ * Refactor: move of_stress_pw from src_pw/ to module_hamilt_pw/hamilt_ofdft/ * Refactor: move pseudopotential part from src_pw/ to module_hamilt_pw/hamilt_pwdft/ * Refactor: move wave-function-initial and kernals from src_pw/ to module_hamilt_pw/hamilt_pwdft/ * Fix: compiling error for cuda and rocm * Fix: ignored UT cal_dbecp_noevc_nl_op_cpu for unknown bug * Refactor: move Ewald code from src_pw to module_hamilt_general/module_ewald * Refactor: move module_vdw to module_hamilt_general/module_vdw * Refactor: move module_xc to module_hamilt_general/module_xc * Refactor: move module_surchem to module_hamilt_general/module_surchem * Refactor: move energy, magnetism, and occupy from src_pw/ to module_elecstate/ * Fix: compiling error in UTs * Refactor: delete useless code pw_complement in src_pw * Refactor: move soc and structure_factor code from src_pw/ to module_hamilt_pw/hamilt_pwdft/ , useless file bspline_sf.cpp is deleted. * Refactor: delete myfunc.h and xc_3.cpp in src_pw, add used code to new file dnrm2 in module_ewald * Refactor: delete unused code threshold_elec in src_pw * Refactor: move symmetry_rho from src_pw/ to module_symmetry/ * Doc: update related docs for code paths * Refactor: move force&stress code from src_lcao to module_hamilt_lcao * Refactor: move tddft code from src_lcao to module_hamilt_lcao/module_tddft * Refactor: add hamilt_lcaodft in module_hamilt_lcao * Refactor: move LCAO* and record_adj from src_lcao to module_hamilt_lcao/hamilt_lcaodft * Refactor: move center* from src_lcao to module_hamilt_lcao/hamilt_lcaodft * Refactor: move serialization_*.h from src_lcao to src_ri * Refactor: delete broken file dmft.h in src_lcao * Refactor: move src_lcao to module_hamilt_lcao/hamilt_lcaodft and delete src_lcao * Refactor: separate header of global.h and global_fp.h * Refactor: move global.h from src_pw to hamilt_pwdft and delete src_pw * Fix: compiling error for RI * Refactor: move symmetry_rho from module_symmetry to module_charge
1 parent 7c806eb commit 672301a

File tree

504 files changed

+2167
-2918
lines changed

Some content is hidden

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

504 files changed

+2167
-2918
lines changed

CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,12 +478,14 @@ target_link_libraries(${ABACUS_BIN_NAME}
478478
io
479479
relax
480480
parallel
481-
pw
482481
driver
483482
xc_
484483
hsolver
485484
elecstate
486-
hamilt
485+
hamilt_general
486+
hamilt_pwdft
487+
hamilt_ofdft
488+
hamilt_stodft
487489
psi
488490
esolver
489491
vdw
@@ -492,7 +494,8 @@ target_link_libraries(${ABACUS_BIN_NAME}
492494

493495
if(ENABLE_LCAO)
494496
target_link_libraries(${ABACUS_BIN_NAME}
495-
lcao
497+
hamilt_lcao
498+
tddft
496499
orb
497500
gint
498501
dftu

docs/advanced/input_files/input-main.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ These variables are used to control general system parameters.
197197

198198
- **Type**: String
199199
- **Description**: In our package, the XC functional can either be set explicitly using the `dft_functional` keyword in `INPUT` file. If `dft_functional` is not specified, ABACUS will use the xc functional indicated in the pseudopotential file.
200-
On the other hand, if dft_functional is specified, it will overwrite the functional from pseudopotentials and performs calculation with whichever functional the user prefers. We further offer two ways of supplying exchange-correlation functional. The first is using 'short-hand' names such as 'LDA', 'PBE', 'SCAN'. A complete list of 'short-hand' expressions can be found in [the source code](../../../source/module_xc/xc_functional.cpp). The other way is only available when ***compiling with LIBXC***, and it allows for supplying exchange-correlation functionals as combinations of LIBXC keywords for functional components, joined by a plus sign, for example, 'dft_functional='LDA_X_1D_EXPONENTIAL+LDA_C_1D_CSC'. The list of LIBXC keywords can be found on its [website](https://www.tddft.org/programs/libxc/functionals/). In this way, **we support all the LDA,GGA and mGGA functionals provided by LIBXC**.
200+
On the other hand, if dft_functional is specified, it will overwrite the functional from pseudopotentials and performs calculation with whichever functional the user prefers. We further offer two ways of supplying exchange-correlation functional. The first is using 'short-hand' names such as 'LDA', 'PBE', 'SCAN'. A complete list of 'short-hand' expressions can be found in [the source code](../../../source/module_hamilt_general/module_xc/xc_functional.cpp). The other way is only available when ***compiling with LIBXC***, and it allows for supplying exchange-correlation functionals as combinations of LIBXC keywords for functional components, joined by a plus sign, for example, 'dft_functional='LDA_X_1D_EXPONENTIAL+LDA_C_1D_CSC'. The list of LIBXC keywords can be found on its [website](https://www.tddft.org/programs/libxc/functionals/). In this way, **we support all the LDA,GGA and mGGA functionals provided by LIBXC**.
201201

202202
Furthermore, the old INPUT parameter exx_hybrid_type for hybrid functionals has been absorbed into dft_functional. Options are `hf` (pure Hartree-Fock), `pbe0`(PBE0), `hse` (Note: in order to use HSE functional, LIBXC is required). Note also that HSE has been tested while PBE0 has NOT been fully tested yet, and the maximum CPU cores for running exx in parallel is $N(N+1)/2$, with N being the number of atoms. And forces for hybrid functionals are not supported yet.
203203

@@ -1762,7 +1762,7 @@ These variables are used to control vdW-corrected related parameters.
17621762
- **Type**: String
17631763
- **Description**: This variable is relevant if the user wants to manually set the $C_6$ parameters in D2 method. It gives the name of the file which contains the list of $C_6$ parameters for each element.
17641764

1765-
If not set, ABACUS will use the default $C_6$ Parameters stored in the program. The default values of $C_6$ for elements 1_H up to 86_Rn can be found by searching for `C6_default` in the [source code](https://github.com/deepmodeling/abacus-develop/blob/develop/source/src_pw/vdwd2_parameters.cpp). The unit is Jnm6/mol.
1765+
If not set, ABACUS will use the default $C_6$ Parameters stored in the program. The default values of $C_6$ for elements 1_H up to 86_Rn can be found by searching for `C6_default` in the [source code](https://github.com/deepmodeling/abacus-develop/blob/develop/source/module_hamilt_general/module_vdw/vdwd2_parameters.cpp). The unit is Jnm6/mol.
17661766

17671767
Otherwise, if user wants to manually set the $C_6$ Parameters, they should provide a file containing the $C_6$ parameters to be used. An example is given by:
17681768

@@ -1784,7 +1784,7 @@ These variables are used to control vdW-corrected related parameters.
17841784

17851785
- **Type**: String
17861786
- **Description**: This variable is relevant if the user wants to manually set the $R_0$ parameters in D2 method.
1787-
If not set, ABACUS will use the default $C_6$ Parameters stored in the program. The default values of $C_6$ for elements 1_H up to 86_Rn can be found by searching for `R0_default` in the [source code](https://github.com/deepmodeling/abacus-develop/blob/develop/source/src_pw/vdwd2_parameters.cpp). The unit is Angstrom.
1787+
If not set, ABACUS will use the default $C_6$ Parameters stored in the program. The default values of $C_6$ for elements 1_H up to 86_Rn can be found by searching for `R0_default` in the [source code](https://github.com/deepmodeling/abacus-develop/blob/develop/source/module_hamilt_general/module_vdw/vdwd2_parameters.cpp). The unit is Angstrom.
17881788

17891789
Otherwise, if the user wants to manually set the $C_6$ Parameters, they should provide a file containing the $C_6$ parameters to be used. An example is given by:
17901790

docs/advanced/scf/construct_H.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
In our package, the XC functional can be set explicitly using the `dft_functional` keyword in `INPUT` file. If `dft_functional` is not specified, ABACUS will use the xc functional indicated in the pseudopotential file.
66

7-
Several common functionals are implemented in ABACUS, such as PZ and PBE. Users can check out this [file](../../../source/module_xc/xc_funcs.h) for a complete list of functionals implemented in ABACUS. Furthermore, if ABACUS is compiled with LIBXC, we also support all the LDA, GGA and meta-GGA functionals provided therein.
7+
Several common functionals are implemented in ABACUS, such as PZ and PBE. Users can check out this [file](../../../source/module_hamilt_general/module_xc/xc_funcs.h) for a complete list of functionals implemented in ABACUS. Furthermore, if ABACUS is compiled with LIBXC, we also support all the LDA, GGA and meta-GGA functionals provided therein.
88

99
Here, we use a simple [example calculation](https://github.com/deepmodeling/abacus-develop/tree/develop/examples/scf/lcao_Si2) for illustration.
1010

@@ -45,7 +45,7 @@ Here, we use a simple [example calculation](https://github.com/deepmodeling/abac
4545
dft_functional SCAN
4646
```
4747
48-
Note that in the case of PBE and SCAN, we are using 'short-hand' names to represent the entire functional, which is made up of individual exchange and correlation components. A complete list of 'short-hand' expressions supported by ABACUS can be found in [source code](../../../source/module_xc/xc_functional.cpp).
48+
Note that in the case of PBE and SCAN, we are using 'short-hand' names to represent the entire functional, which is made up of individual exchange and correlation components. A complete list of 'short-hand' expressions supported by ABACUS can be found in [source code](../../../source/module_hamilt_general/module_xc/xc_functional.cpp).
4949
5050
Apart from the 'short-hand' names, ABACUS also allow supplying exchange-correlation functionals as combinations of LIBXC keywords for functional components, joined by plus sign, for example, setting:
5151

source/CMakeLists.txt

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,27 @@ add_subdirectory(module_symmetry)
44
add_subdirectory(module_neighbor)
55
add_subdirectory(module_psi)
66
add_subdirectory(module_elecstate)
7-
add_subdirectory(module_hamilt)
7+
add_subdirectory(module_hamilt_general)
8+
add_subdirectory(module_hamilt_pw/hamilt_pwdft)
9+
add_subdirectory(module_hamilt_pw/hamilt_ofdft)
10+
add_subdirectory(module_hamilt_pw/hamilt_stodft)
11+
add_subdirectory(module_hamilt_lcao)
812
add_subdirectory(module_hsolver)
913
add_subdirectory(module_orbital)
1014
add_subdirectory(module_md)
1115
add_subdirectory(module_pw)
12-
add_subdirectory(module_surchem)
16+
add_subdirectory(module_hamilt_general/module_surchem)
1317
add_subdirectory(module_deepks)
14-
add_subdirectory(module_xc)
18+
add_subdirectory(module_hamilt_general/module_xc)
1519
add_subdirectory(module_esolver)
1620
add_subdirectory(module_gint)
1721
add_subdirectory(module_dftu)
1822
add_subdirectory(module_io)
1923
add_subdirectory(module_relax)
20-
add_subdirectory(src_lcao)
2124
add_subdirectory(src_parallel)
2225
add_subdirectory(src_pdiag)
23-
add_subdirectory(src_pw)
2426
add_subdirectory(src_ri)
25-
add_subdirectory(module_vdw)
27+
add_subdirectory(module_hamilt_general/module_vdw)
2628
add_subdirectory(module_ri)
2729

2830
add_library(
@@ -33,57 +35,57 @@ add_library(
3335
)
3436

3537
list(APPEND device_srcs
36-
module_hamilt/kernels/nonlocal_op.cpp
37-
module_hamilt/kernels/veff_op.cpp
38-
module_hamilt/kernels/ekinetic_op.cpp
39-
module_hamilt/kernels/meta_op.cpp
38+
module_hamilt_pw/hamilt_pwdft/kernels/nonlocal_op.cpp
39+
module_hamilt_pw/hamilt_pwdft/kernels/veff_op.cpp
40+
module_hamilt_pw/hamilt_pwdft/kernels/ekinetic_op.cpp
41+
module_hamilt_pw/hamilt_pwdft/kernels/meta_op.cpp
4042
module_pw/kernels/pw_op.cpp
4143
module_hsolver/kernels/dngvd_op.cpp
4244
module_hsolver/kernels/math_kernel_op.cpp
4345
module_elecstate/kernels/elecstate_op.cpp
4446
module_psi/kernels/memory_op.cpp
4547
module_psi/kernels/device.cpp
46-
src_pw/kernels/force_op.cpp
47-
src_pw/kernels/stress_op.cpp
48-
src_pw/kernels/wf_op.cpp
49-
src_pw/kernels/vnl_op.cpp
48+
module_hamilt_pw/hamilt_pwdft/kernels/force_op.cpp
49+
module_hamilt_pw/hamilt_pwdft/kernels/stress_op.cpp
50+
module_hamilt_pw/hamilt_pwdft/kernels/wf_op.cpp
51+
module_hamilt_pw/hamilt_pwdft/kernels/vnl_op.cpp
5052
module_base/kernels/math_op.cpp
5153
)
5254

5355
if(USE_CUDA)
5456
list(APPEND device_srcs
55-
module_hamilt/kernels/cuda/nonlocal_op.cu
56-
module_hamilt/kernels/cuda/veff_op.cu
57-
module_hamilt/kernels/cuda/ekinetic_op.cu
58-
module_hamilt/kernels/cuda/meta_op.cu
57+
module_hamilt_pw/hamilt_pwdft/kernels/cuda/nonlocal_op.cu
58+
module_hamilt_pw/hamilt_pwdft/kernels/cuda/veff_op.cu
59+
module_hamilt_pw/hamilt_pwdft/kernels/cuda/ekinetic_op.cu
60+
module_hamilt_pw/hamilt_pwdft/kernels/cuda/meta_op.cu
5961
module_pw/kernels/cuda/pw_op.cu
6062
module_hsolver/kernels/cuda/dngvd_op.cu
6163
module_hsolver/kernels/cuda/math_kernel_op.cu
6264
module_elecstate/kernels/cuda/elecstate_op.cu
6365
module_psi/kernels/cuda/memory_op.cu
64-
src_pw/kernels/cuda/force_op.cu
65-
src_pw/kernels/cuda/stress_op.cu
66-
src_pw/kernels/cuda/wf_op.cu
67-
src_pw/kernels/cuda/vnl_op.cu
66+
module_hamilt_pw/hamilt_pwdft/kernels/cuda/force_op.cu
67+
module_hamilt_pw/hamilt_pwdft/kernels/cuda/stress_op.cu
68+
module_hamilt_pw/hamilt_pwdft/kernels/cuda/wf_op.cu
69+
module_hamilt_pw/hamilt_pwdft/kernels/cuda/vnl_op.cu
6870
module_base/kernels/cuda/math_op.cu
6971
)
7072
endif()
7173

7274
if(USE_ROCM)
7375
hip_add_library(device_rocm STATIC
74-
module_hamilt/kernels/rocm/nonlocal_op.hip.cu
75-
module_hamilt/kernels/rocm/veff_op.hip.cu
76-
module_hamilt/kernels/rocm/ekinetic_op.hip.cu
77-
module_hamilt/kernels/rocm/meta_op.hip.cu
76+
module_hamilt_pw/hamilt_pwdft/kernels/rocm/nonlocal_op.hip.cu
77+
module_hamilt_pw/hamilt_pwdft/kernels/rocm/veff_op.hip.cu
78+
module_hamilt_pw/hamilt_pwdft/kernels/rocm/ekinetic_op.hip.cu
79+
module_hamilt_pw/hamilt_pwdft/kernels/rocm/meta_op.hip.cu
7880
module_pw/kernels/rocm/pw_op.hip.cu
7981
module_hsolver/kernels/rocm/dngvd_op.hip.cu
8082
module_hsolver/kernels/rocm/math_kernel_op.hip.cu
8183
module_elecstate/kernels/rocm/elecstate_op.hip.cu
8284
module_psi/kernels/rocm/memory_op.hip.cu
83-
src_pw/kernels/rocm/force_op.hip.cu
84-
src_pw/kernels/rocm/stress_op.hip.cu
85-
src_pw/kernels/rocm/wf_op.hip.cu
86-
src_pw/kernels/rocm/vnl_op.hip.cu
85+
module_hamilt_pw/hamilt_pwdft/kernels/rocm/force_op.hip.cu
86+
module_hamilt_pw/hamilt_pwdft/kernels/rocm/stress_op.hip.cu
87+
module_hamilt_pw/hamilt_pwdft/kernels/rocm/wf_op.hip.cu
88+
module_hamilt_pw/hamilt_pwdft/kernels/rocm/vnl_op.hip.cu
8789
module_base/kernels/rocm/math_op.hip.cu
8890
)
8991
endif()

source/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ test:
186186

187187
pw $(BIN_DIR)/${VERSION}-PW.x:
188188
@ if [ ! -d $(BIN_DIR) ]; then mkdir $(BIN_DIR); fi
189-
@ cd src_pw; $(MAKE) CC=${CC} GPU=${GPU} DEBUG=$(DEBUG) FFTW_DIR=$(FFTW_DIR) OPENBLAS_LIB_DIR=$(OPENBLAS_LIB_DIR) ${PWTAG}
190-
@ cp src_pw/${VERSION}-PW.x $(BIN_DIR)/${VERSION}-PW.x
189+
@ cd module_hamilt_pw/hamilt_pwdft; $(MAKE) CC=${CC} GPU=${GPU} DEBUG=$(DEBUG) FFTW_DIR=$(FFTW_DIR) OPENBLAS_LIB_DIR=$(OPENBLAS_LIB_DIR) ${PWTAG}
190+
@ cp module_hamilt_pw/hamilt_pwdft/${VERSION}-PW.x $(BIN_DIR)/${VERSION}-PW.x
191191

192192
$(BIN_DIR)/${VERSION}.$(suffix) : ${FP_OBJS} ${PDIAG_OBJS} ${HEADERS}
193193
${CC} ${OPTS} ${OPTS_MPI} $(FP_OBJS) ${PDIAG_OBJS} ${LIBS} -o $(BIN_DIR)/${VERSION}.$(suffix)
@@ -207,4 +207,4 @@ ${OBJ_DIR}/%.o:%.cpp
207207
clean:
208208
@ if [ -d $(OBJ_DIR) ]; then rm -rf $(OBJ_DIR); fi
209209
@ if [ -d $(BIN_DIR) ]; then rm -rf $(BIN_DIR); fi
210-
@ cd src_pw; make clean
210+
@ cd module_hamilt_pw/hamilt_pwdft; make clean

source/Makefile.Objects

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,32 +20,35 @@ VPATH=./src_global:\
2020
./module_base/kernels:\
2121
./module_md:\
2222
./module_pw:\
23-
./module_surchem:\
23+
./module_hamilt_general/module_surchem:\
2424
./module_deepks:\
25-
./module_xc:\
25+
./module_hamilt_general/module_xc:\
2626
./module_esolver:\
2727
./module_hsolver:\
2828
./module_hsolver/kernels:\
2929
./module_hsolver/genelpa:\
3030
./module_elecstate:\
3131
./module_elecstate/kernels:\
3232
./module_elecstate/potentials:\
33+
./module_elecstate/module_charge:\
3334
./module_psi:\
3435
./module_psi/kernels:\
35-
./module_hamilt:\
36-
./module_hamilt/ks_pw:\
37-
./module_hamilt/ks_lcao:\
38-
./module_hamilt/of_pw:\
39-
./module_hamilt/kernels:\
36+
./module_hamilt_general:\
37+
./module_hamilt_general/module_ewald:\
38+
./module_hamilt_pw/hamilt_pwdft:\
39+
./module_hamilt_lcao/hamilt_lcaodft:\
40+
./module_hamilt_lcao/module_tddft:\
41+
./module_hamilt_pw/hamilt_ofdft:\
42+
./module_hamilt_pw/hamilt_stodft:\
43+
./module_hamilt_pw/hamilt_pwdft/operator_pw:\
44+
./module_hamilt_lcao/hamilt_lcaodft/operator_lcao:\
45+
./module_hamilt_pw/hamilt_pwdft/kernels:\
4046
./module_gint:\
4147
./module_dftu:\
42-
./src_pw:\
43-
./src_pw/kernels:\
44-
./src_lcao:\
4548
./module_relax:\
4649
./module_relax/relax_old:\
4750
./module_relax/relax_new:\
48-
./module_vdw:\
51+
./module_hamilt_general/module_vdw:\
4952
./module_io:\
5053
./src_parallel:\
5154
./src_pdiag:\
@@ -138,6 +141,7 @@ OBJS_CELL=atom_pseudo.o\
138141
read_atoms.o\
139142
read_cell_pseudopots.o\
140143
setup_nonlocal.o\
144+
klist.o\
141145

142146
OBJS_DEEPKS=LCAO_deepks.o\
143147
LCAO_deepks_fdelta.o\
@@ -377,7 +381,6 @@ OBJS_LCAO=DM_gamma.o\
377381
LCAO_hamilt.o\
378382
LCAO_matrix.o\
379383
LCAO_nnr.o\
380-
build_st_pw.o\
381384
center2_orb-orb11.o\
382385
center2_orb-orb21.o\
383386
center2_orb-orb22.o\
@@ -430,6 +433,7 @@ OBJS_PARALLEL=parallel_common.o\
430433
parallel_reduce.o\
431434

432435
OBJS_SRCPW=H_Ewald_pw.o\
436+
dnrm2.o\
433437
VL_in_pw.o\
434438
VNL_in_pw.o\
435439
VNL_grad_pw.o\
@@ -445,11 +449,9 @@ OBJS_SRCPW=H_Ewald_pw.o\
445449
wf_op.o\
446450
vnl_op.o\
447451
global.o\
448-
klist.o\
449452
magnetism.o\
450453
occupy.o\
451454
structure_factor.o\
452-
pw_complement.o\
453455
soc.o\
454456
sto_iter.o\
455457
sto_hchi.o\
@@ -469,11 +471,9 @@ OBJS_SRCPW=H_Ewald_pw.o\
469471
stress_pw.o\
470472
of_stress_pw.o\
471473
symmetry_rho.o\
472-
threshold_elec.o\
473474
wavefunc.o\
474475
wf_atomic.o\
475476
wf_igk.o\
476-
xc_3.o\
477477

478478
OBJS_VDW=vdw.o\
479479
vdwd2_parameters.o\

source/driver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
#include "module_io/input.h"
44
#include "module_io/input_conv.h"
5-
#include "src_pw/global.h"
5+
#include "module_hamilt_pw/hamilt_pwdft/global.h"
66
#ifdef __LCAO
7-
#include "src_lcao/global_fp.h"
7+
#include "module_hamilt_lcao/hamilt_lcaodft/global_fp.h"
88
#endif
99
#include "module_base/memory.h"
1010
#include "module_base/timer.h"

source/driver_run.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "driver.h"
2-
#include "src_pw/global.h"
2+
#include "module_hamilt_pw/hamilt_pwdft/global.h"
33
#include "module_io/input.h"
44
#include "module_io/winput.h"
55
#include "module_neighbor/sltk_atom_arrange.h"

source/module_base/global_variable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ int test_energy = 0;
167167
// for test purpose, skip ewald calculation
168168
bool test_skip_ewald = false;
169169
//----------------------------------------------------------
170-
// src_lcao
170+
// module_hamilt_lcao/hamilt_lcaodft
171171
//----------------------------------------------------------
172172
int test_atom_arrange = 0;
173173
int test_atom_input = 0;

source/module_base/kernels/cuda/math_op.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,5 +151,5 @@ void cal_ylm_real_op<FPTYPE, psi::DEVICE_GPU>::operator() (
151151
template struct cal_ylm_real_op<float, psi::DEVICE_GPU>;
152152
template struct cal_ylm_real_op<double, psi::DEVICE_GPU>;
153153

154-
} // namespace src_pw
154+
} // namespace ModuleBase
155155

0 commit comments

Comments
 (0)