Skip to content

Commit 8527844

Browse files
author
wenfei-li
committed
Merge branch 'develop' of github.com:deepmodeling/abacus-develop into develop
2 parents d6fd782 + 07dff71 commit 8527844

File tree

167 files changed

+29969
-3962
lines changed

Some content is hidden

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

167 files changed

+29969
-3962
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ target_link_libraries(${ABACUS_BIN_NAME}
263263
cell
264264
symmetry
265265
md
266+
surchem
266267
neighbor
267268
orb
268269
io

docs/input-main.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
- [Variables related to output information](#variables-related-to-output-information)
3434

35-
[out_force](#out_force) | [out_mul](#out_mul) | [out_chg](#out_chg) | [out_pot](#out_pot) | [out_dm](#out-dm) | [out_wfc_pw](#out_wfc_pw) | [out_wfc_r](#out_wfc_r) | [out_wfc_lcao](#out_wfc_lcao) | [out_dos](#out-dos) | [out_band](#out-band) | [out_stru](#out-stru) | [out_level](#out_level) | [out_alllog](#out-alllog) | [out_mat_hs](#out_mat_hs) | [out_mat_r](#out_mat_r) | [out_mat_hs2](#out_mat_hs2) | [out_element_info](#out-element-info) | [restart_save](#restart_save) | [restart_load](#restart_load)
35+
[out_force](#out_force) | [out_mul](#out_mul) | [out_freq_elec](#out_freq_elec) | [out_freq_ion](#out_freq_ion) | [out_chg](#out_chg) | [out_pot](#out_pot) | [out_dm](#out-dm) | [out_wfc_pw](#out_wfc_pw) | [out_wfc_r](#out_wfc_r) | [out_wfc_lcao](#out_wfc_lcao) | [out_dos](#out-dos) | [out_band](#out-band) | [out_stru](#out-stru) | [out_level](#out_level) | [out_alllog](#out-alllog) | [out_mat_hs](#out_mat_hs) | [out_mat_r](#out_mat_r) | [out_mat_hs2](#out_mat_hs2) | [out_element_info](#out-element-info) | [restart_save](#restart_save) | [restart_load](#restart_load)
3636

3737
- [Density of states](#density-of-states)
3838

@@ -675,6 +675,18 @@ This part of variables are used to control the output of properties.
675675
- **Description**: If set to 1, ABACUS will output the Mulliken population analysis result. The name of the output file is mulliken.txt
676676
- **Default**: 0
677677
678+
#### out_freq_elec
679+
680+
- **Type**: Integer
681+
- **Description**: If set to >1, it represents the frequency of electronic iters to output charge density (if [out_chg](#out_chg) is turned on) and wavefunction (if [out_wfc_pw](#out_wf_pw) or [out_wfc_r](#out_wfc_r) is turned on). If set to 0, ABACUS will output them only when converged in SCF. Used for the restart of SCF.
682+
- **Default**: 0
683+
684+
#### out_freq_ion
685+
686+
- **Type**: Integer
687+
- **Description**: If set to >1, it represents the frequency of ionic steps to output charge density (if [out_chg](#out_chg) is turned on) and wavefunction (if [out_wfc_pw](#out_wf_pw) or [out_wfc_r](#out_wfc_r) is turned on). If set to 0, ABACUS will output them only when ionic steps reach its maximum step. Used for the restart of MD or Relax.
688+
- **Default**: 0
689+
678690
#### out_chg
679691
680692
- **Type**: Integer

source/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ add_subdirectory(module_hamilt)
88
add_subdirectory(module_hsolver)
99
add_subdirectory(module_orbital)
1010
add_subdirectory(module_md)
11+
add_subdirectory(module_surchem)
1112
add_subdirectory(module_deepks)
1213
add_subdirectory(module_xc)
1314
add_subdirectory(module_esolver)

source/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ VPATH=./src_global\
1414
:./module_cell\
1515
:./module_base\
1616
:./module_md\
17+
:./module_surchem\
1718
:./module_deepks\
1819
:./module_xc\
1920
:./module_esolver\
21+
:./module_surchem\
2022
:./src_pw\
2123
:./src_lcao\
2224
:./src_ions\
@@ -68,6 +70,7 @@ FP_OBJS_0=$(OBJS_FIRST_PRINCIPLES)\
6870
$(OBJS_PARALLEL)\
6971
$(OBJS_TOOLS) \
7072
$(OBJS_COMMON)\
73+
$(OBJS_SURCHEM)\
7174
main.o\
7275

7376
FP_OBJS=$(patsubst %.o, ${OBJ_DIR}/%.o, ${FP_OBJS_0})

source/Makefile.Objects

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ OBJS_ESOLVER=esolver.o\
231231
esolver_ks.o\
232232
esolver_fp.o\
233233
esolver_ks_pw.o\
234+
esolver_sdft_pw.o\
234235
esolver_ks_lcao.o\
235236
esolver_lj.o\
236237
esolver_dp.o\
@@ -367,6 +368,15 @@ pzt2s.o\
367368
pdtrsm.o\
368369
pzhtrsm.o\
369370

371+
OBJS_SURCHEM=cal_epsilon.o\
372+
cal_pseudo.o\
373+
cal_totn.o\
374+
cal_vcav.o\
375+
cal_vel.o\
376+
corrected_energy.o\
377+
H_correction_pw.o\
378+
minimize_cg.o\
379+
370380
PDIAG_MR_0=dcopy.o\
371381
dlae2.o\
372382
dlaebz.o\

source/Makefile.system

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ FFTW_LIB_DIR = ${FFTW_DIR}/lib
1717
#FFTW_LIB_DIR = $(MKLROOT)/lib/intel64
1818
FFTW_LIB = -L${FFTW_LIB_DIR} -lfftw3 -Wl,-rpath=${FFTW_LIB_DIR}
1919

20-
ELPA_INCLUDE_DIR = ${ELPA_DIR}/include/elpa-2021.11.002
2120
ELPA_LIB_DIR = ${ELPA_DIR}/lib
2221
# comment out by mohan 2021-02-06
2322
#ELPA_LIB = -L${ELPA_LIB_DIR} -lelpa_openmp -Wl,-rpath=${ELPA_LIB_DIR}

source/Makefile.vars

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ CPLUSPLUS = icpc
33
CPLUSPLUS_MPI = mpiicpc
44

55
LAPACK_DIR = $(MKLROOT)
6-
# LAPACK_DIR = /public/software/parallel_studio_xe_2019_update3/compilers_and_libraries_2019/linux/mkl
76

8-
FFTW_DIR = /public/software/fftw-3.3.8
7+
FFTW_DIR = /public/software/fftw_3.3.8
98

10-
ELPA_DIR = /public/software/elpa-gitlab
9+
ELPA_DIR = /public/software/elpa_21.05.002
10+
ELPA_INCLUDE_DIR = ${ELPA_DIR}/include/elpa-2021.05.002
1111

12-
CEREAL_DIR = /public/software/cereal-1.3.2
12+
CEREAL_DIR = /public/software/cereal
1313

1414
# LIBXC_DIR = /public/software/libxc-5.0.0
1515

0 commit comments

Comments
 (0)