Skip to content

Commit b041580

Browse files
author
Fei Yang
committed
remove vector<vector> in bfgs and remove const number
1 parent cd77ad9 commit b041580

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/source_relax/test/bfgs_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ TEST_F(BFGSTest, DetermineStepScaling)
6868
bfgs.allocate(size);
6969

7070
std::vector<double> steplength = {1.0, 0.1};
71-
std::vector<std::vector<double>> dpos = {
72-
{1.0, 1.0, 1.0},
73-
{0.1, 0.1, 0.1}
71+
std::vector<ModuleBase::Vector3<double>> dpos = {
72+
ModuleBase::Vector3<double>(1.0, 1.0, 1.0),
73+
ModuleBase::Vector3<double>(0.1, 0.1, 0.1)
7474
};
7575
double maxstep = 0.5;
7676
bfgs.DetermineStep(steplength, dpos, maxstep);

0 commit comments

Comments
 (0)