Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
ef9dd5a
format update
Jun 8, 2026
cfdf83f
replace new with vector
Jun 8, 2026
94eb11b
format update
Jun 8, 2026
6fcf5cf
update
Jun 8, 2026
01621e9
update
Jun 8, 2026
1b8d938
update
Jun 8, 2026
2730b79
move bfgs.h to ions_move_bfgs2.h
Jun 8, 2026
0ca3ecb
fix
Jun 9, 2026
bdb057a
add relax_data
Jun 9, 2026
73edf35
update
Jun 9, 2026
44eb641
update
Jun 9, 2026
499adf2
update
Jun 9, 2026
e5fc0a9
fix
Jun 9, 2026
95c3ca7
fix test of relax module
Jun 9, 2026
18fbff9
remove ZEROS function
Jun 9, 2026
fee96c2
remove GlobalC, phase 1
Jun 9, 2026
218a80a
fix bug
Jun 10, 2026
f4d2b57
remove GlobalV::ofs_running
Jun 10, 2026
0071ad0
fix bugs
Jun 10, 2026
dc24a75
update
Jun 10, 2026
5f40981
remove esolver_ks.h
Jun 10, 2026
31ba7ed
fix a bug
Jun 10, 2026
f928216
delete useless variable
Jun 10, 2026
5f504b5
refactor(relax_driver): 重构弛豫驱动模块
Jun 10, 2026
110cd92
update
Jun 11, 2026
cd55cde
change name
Jun 11, 2026
cda29ce
update
Jun 11, 2026
9968e7e
optimize
Jun 11, 2026
ef95a7e
update
Jun 11, 2026
5080b32
improve the logic
Jun 11, 2026
d56ba50
update
Jun 11, 2026
8f2915f
change istep starting from 0
Jun 11, 2026
e33c561
update istep, should be starting from 0, when output, should be istep+1
Jun 11, 2026
61d9ebc
Merge branch 'develop' into 20260608-relax
mohanchen Jun 11, 2026
74da953
remove class variables
Jun 12, 2026
9433e40
update
Jun 12, 2026
ea84dbb
update
Jun 12, 2026
0761288
update
Jun 12, 2026
4538341
update
Jun 12, 2026
29b5d38
update
Jun 12, 2026
d5720cc
move istep in ions_move_basic.h
Jun 12, 2026
55f198a
remove converged variable in ions_move_basic
Jun 12, 2026
fa1dcb3
Merge branch '20260608-relax' of github.com:mohanchen/abacus-mc into …
Jun 12, 2026
d980068
Merge branch 'develop' into 20260608-relax
mohanchen Jun 12, 2026
99da1dd
fix test
Jun 15, 2026
0cf591b
Merge branch '20260608-relax' of github.com:mohanchen/abacus-mc into …
Jun 15, 2026
236f6dd
remove a parameter update_iter in ions_move_basic
Jun 15, 2026
3958fbc
remove some variables abot etot and etot_p
Jun 15, 2026
62575a9
Merge branch 'develop' into 20260608-relax
mohanchen Jun 15, 2026
121aa8a
update, remove variables
Jun 15, 2026
2bdca9c
update
Jun 15, 2026
4aec70c
remove relax_methods
Jun 15, 2026
004d99c
delete useless variables
Jun 15, 2026
4d23722
update move_cg method
Jun 15, 2026
5cfa3fa
remove static members in lattice_change_cg files
Jun 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/pyabacus/src/ModuleDriver/py_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ CalculationResult PyDriver::run(
if (cal == "scf" || cal == "relax" || cal == "cell-relax" || cal == "nscf")
{
Relax_Driver rl_driver;
rl_driver.relax_driver(impl_->p_esolver_, *impl_->ucell_, PARAM.inp);
rl_driver.relax_driver(impl_->p_esolver_, *impl_->ucell_, PARAM.inp, GlobalV::ofs_running);
}
else if (cal == "get_s")
{
Expand Down
8 changes: 5 additions & 3 deletions source/Makefile.Objects
Original file line number Diff line number Diff line change
Expand Up @@ -460,10 +460,13 @@ OBJS_PW=fft_bundle.o\
pw_transform.o\
pw_transform_k.o\

OBJS_RELAXATION=bfgs_basic.o\
OBJS_RELAXATION=relax_data.o\
cg_base.o\
bfgs_basic.o\
relax_driver.o\
ions_move_basic.o\
ions_move_bfgs.o\
ions_move_bfgs2.o\
ions_move_cg.o\
ions_move_methods.o\
ions_move_sd.o\
Expand All @@ -472,8 +475,7 @@ OBJS_RELAXATION=bfgs_basic.o\
lattice_change_methods.o\
relax_nsync.o\
relax_sync.o\
bfgs.o\
lbfgs.o\
ions_move_lbfgs.o\
matrix_methods.o\
line_search.o\

Expand Down
2 changes: 0 additions & 2 deletions source/source_io/module_parameter/input_conv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,6 @@ void Input_Conv::Convert()
Ions_Move_Basic::relax_bfgs_rmax = PARAM.inp.relax_bfgs_rmax;
Ions_Move_Basic::relax_bfgs_rmin = PARAM.inp.relax_bfgs_rmin;
Ions_Move_Basic::relax_bfgs_init = PARAM.inp.relax_bfgs_init;
Ions_Move_Basic::out_stru = PARAM.inp.out_stru; // mohan add 2012-03-23
Ions_Move_Basic::relax_method = PARAM.inp.relax_method;
Lattice_Change_Basic::fixed_axes = PARAM.inp.fixed_axes;


Expand Down
1 change: 0 additions & 1 deletion source/source_io/test/for_testing_input_conv.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ double BFGS_Basic::relax_bfgs_w2 = -1.0;
double Ions_Move_Basic::relax_bfgs_rmax = -1.0;
double Ions_Move_Basic::relax_bfgs_rmin = -1.0;
double Ions_Move_Basic::relax_bfgs_init = -1.0;
int Ions_Move_Basic::out_stru = 0;
double Ions_Move_CG::RELAX_CG_THR = -1.0;
std::string Lattice_Change_Basic::fixed_axes = "None";
int ModuleSymmetry::Symmetry::symm_flag = 0;
Expand Down
2 changes: 1 addition & 1 deletion source/source_main/driver_run.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void Driver::driver_run()
else if (cal == "scf" || cal == "relax" || cal == "cell-relax" || cal == "nscf")
{
Relax_Driver rl_driver;
rl_driver.relax_driver(p_esolver, ucell, PARAM.inp);
rl_driver.relax_driver(p_esolver, ucell, PARAM.inp, GlobalV::ofs_running);
}
else if (cal == "get_s")
{
Expand Down
9 changes: 4 additions & 5 deletions source/source_relax/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
add_library(
relax
OBJECT

relax_data.cpp
cg_base.cpp
relax_driver.cpp

relax_sync.cpp
line_search.cpp

bfgs.cpp
lbfgs.cpp
ions_move_lbfgs.cpp
relax_nsync.cpp
bfgs_basic.cpp
ions_move_basic.cpp
ions_move_bfgs.cpp
ions_move_bfgs2.cpp
ions_move_cg.cpp
ions_move_sd.cpp
ions_move_methods.cpp
Expand Down
Loading
Loading