Skip to content

Commit 502fdec

Browse files
dyzhengdyzhengpre-commit-ci-lite[bot]
authored
Fix&Refactor: soc force/stress error for LCAO code, refactor the force/stress code into operator (#5381)
* Refactor&Fix: soc force&stress for LCAO * Fix: nspin2 error * Fix: lack of switch_dmr * Test: add coverage of force/stress for SOC, and delete useless code * [pre-commit.ci lite] apply automatic fixes * Fix&Refactor: error of NSPIN=2 and refactor DensityMatrix class * Fix: reference of forces in Gamma_only cases * [pre-commit.ci lite] apply automatic fixes * Fix: change reference of Gamma-only case and SOC case * Fix: nb2d default error with NSPIN=4 * Fix: delete useless code --------- Co-authored-by: dyzheng <[email protected]> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
1 parent d81cb46 commit 502fdec

File tree

32 files changed

+1199
-1594
lines changed

32 files changed

+1199
-1594
lines changed

source/Makefile.Objects

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ OBJS_ELECSTAT_LCAO=elecstate_lcao.o\
230230
elecstate_lcao_tddft.o\
231231
elecstate_lcao_cal_tau.o\
232232
density_matrix.o\
233+
density_matrix_io.o\
233234
cal_dm_psi.o\
234235

235236
OBJS_ESOLVER=esolver.o\
@@ -571,8 +572,6 @@ OBJS_LCAO=evolve_elec.o\
571572
stress_tools.o\
572573
edm.o\
573574
pulay_force_stress_center2.o\
574-
fvnl_dbeta_gamma.o\
575-
fvnl_dbeta_k.o\
576575
grid_init.o\
577576
spar_dh.o\
578577
spar_exx.o\

source/module_elecstate/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ if(ENABLE_LCAO)
3535
elecstate_lcao_cal_tau.cpp
3636
potentials/H_TDDFT_pw.cpp
3737
module_dm/density_matrix.cpp
38+
module_dm/density_matrix_io.cpp
3839
module_dm/cal_dm_psi.cpp
3940
)
4041
endif()

0 commit comments

Comments
 (0)