Skip to content

Commit 2c4cb0a

Browse files
committed
new bfgs method
1 parent 1899f53 commit 2c4cb0a

File tree

9 files changed

+31
-273
lines changed

9 files changed

+31
-273
lines changed

SiH2-3et-relax/INPUT

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ INPUT_PARAMETERS
22
# Created by Atomic Simulation Enviroment
33
suffix abacus
44
calculation relax
5+
relax_method bfgs_trad
56
relax_nmax 50
67
nspin 2
78
nupdown 2

SiH2-3et-relax/log

Lines changed: 24 additions & 268 deletions
Large diffs are not rendered by default.

source/Makefile.Objects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ VPATH=./src_global:\
6262
./module_relax:\
6363
./module_relax/relax_old:\
6464
./module_relax/relax_new:\
65+
./module_relax/bfgs_traditional:\
6566
./module_hamilt_general/module_vdw:\
6667
./module_io:\
6768
./module_io/json_output:\

source/module_relax/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ add_library(
1717
relax_old/lattice_change_basic.cpp
1818
relax_old/lattice_change_cg.cpp
1919
relax_old/lattice_change_methods.cpp
20-
mytest/bfgs.cpp
20+
bfgs_traditional/bfgs.cpp
2121
)
2222

2323
if(ENABLE_COVERAGE)
File renamed without changes.

source/module_relax/relax_driver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "module_esolver/esolver_ks.h"
66
#include "relax_new/relax.h"
77
#include "relax_old/relax_old.h"
8-
#include "mytest/bfgs.h"
8+
#include "bfgs_traditional/bfgs.h"
99
class Relax_Driver
1010
{
1111

source/module_relax/relax_new/test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ AddTest(
1414

1515
AddTest(
1616
TARGET relax_new_relax
17-
SOURCES ../../mytest/bfgs.cpp relax_test.cpp ../relax.cpp ../line_search.cpp ../../../module_base/tool_quit.cpp ../../../module_base/global_variable.cpp ../../../module_base/global_file.cpp ../../../module_base/memory.cpp ../../../module_base/timer.cpp
17+
SOURCES relax_test.cpp ../relax.cpp ../line_search.cpp ../../../module_base/tool_quit.cpp ../../../module_base/global_variable.cpp ../../../module_base/global_file.cpp ../../../module_base/memory.cpp ../../../module_base/timer.cpp
1818
../../../module_base/matrix3.cpp ../../../module_base/intarray.cpp ../../../module_base/tool_title.cpp
1919
../../../module_base/global_function.cpp ../../../module_base/complexmatrix.cpp ../../../module_base/matrix.cpp
2020
../../../module_base/complexarray.cpp ../../../module_base/tool_quit.cpp ../../../module_base/realarray.cpp ../../../module_base/blas_connector.cpp
@@ -24,7 +24,7 @@ AddTest(
2424
AddTest(
2525
TARGET bfgs_test
2626
LIBS parameter ${math_libs}
27-
SOURCES bfgs_test.cpp ../../mytest/bfgs.cpp relax_test.cpp ../relax.cpp ../line_search.cpp ../../../module_base/tool_quit.cpp ../../../module_base/global_variable.cpp ../../../module_base/global_file.cpp ../../../module_base/memory.cpp ../../../module_base/timer.cpp
27+
SOURCES bfgs_test.cpp ../../bfgs_traditional/bfgs.cpp relax_test.cpp ../relax.cpp ../line_search.cpp ../../../module_base/tool_quit.cpp ../../../module_base/global_variable.cpp ../../../module_base/global_file.cpp ../../../module_base/memory.cpp ../../../module_base/timer.cpp
2828
../../../module_base/matrix3.cpp ../../../module_base/intarray.cpp ../../../module_base/tool_title.cpp
2929
../../../module_base/global_function.cpp ../../../module_base/complexmatrix.cpp ../../../module_base/matrix.cpp
3030
../../../module_base/complexarray.cpp ../../../module_base/tool_quit.cpp ../../../module_base/realarray.cpp ../../../module_base/blas_connector.cpp

source/module_relax/relax_new/test/bfgs_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include <gtest/gtest.h>
2-
#include "../../mytest/bfgs.h"
2+
#include "../../bfgs_traditional/bfgs.h"
33
#include "module_hamilt_pw/hamilt_pwdft/global.h"
44
#include "module_base/matrix3.h"
55
#include "module_base/vector3.h"

0 commit comments

Comments
 (0)