@@ -138,7 +138,7 @@ TEST_F(IonsMoveCGTest, TestStartSd)
138138 // setup data
139139 Ions_Move_Basic::istep = 1 ;
140140 Ions_Move_Basic::converged = false ;
141- Ions_Move_Basic::relax_method = " cg_bfgs" ;
141+ Ions_Move_Basic::relax_method[ 0 ] = " cg_bfgs" ;
142142 Ions_Move_CG::RELAX_CG_THR = 100.0 ;
143143 UnitCell ucell;
144144 setupucell (ucell);
@@ -162,7 +162,7 @@ TEST_F(IonsMoveCGTest, TestStartSd)
162162 EXPECT_THAT (output, testing::HasSubstr (expected_output));
163163 EXPECT_EQ (Ions_Move_Basic::converged, false );
164164 EXPECT_EQ (Ions_Move_Basic::update_iter, 5 );
165- EXPECT_EQ (Ions_Move_Basic::relax_method, " bfgs" );
165+ EXPECT_EQ (Ions_Move_Basic::relax_method[ 0 ] , " bfgs" );
166166 EXPECT_DOUBLE_EQ (Ions_Move_Basic::largest_grad, 0.01 );
167167 EXPECT_DOUBLE_EQ (Ions_Move_Basic::best_xxx, -1.0 );
168168 EXPECT_DOUBLE_EQ (Ions_Move_Basic::relax_bfgs_init, 1.0 );
@@ -201,7 +201,7 @@ TEST_F(IonsMoveCGTest, TestStartTrialGoto)
201201 EXPECT_THAT (output, testing::HasSubstr (expected_output));
202202 EXPECT_EQ (Ions_Move_Basic::converged, false );
203203 EXPECT_EQ (Ions_Move_Basic::update_iter, 5 );
204- EXPECT_EQ (Ions_Move_Basic::relax_method, " bfgs" );
204+ EXPECT_EQ (Ions_Move_Basic::relax_method[ 0 ] , " bfgs" );
205205 EXPECT_DOUBLE_EQ (Ions_Move_Basic::largest_grad, 0.001 );
206206 EXPECT_DOUBLE_EQ (Ions_Move_Basic::best_xxx, -1.0 );
207207 EXPECT_DOUBLE_EQ (Ions_Move_Basic::relax_bfgs_init, 10.0 );
@@ -239,7 +239,7 @@ TEST_F(IonsMoveCGTest, TestStartTrial)
239239 EXPECT_THAT (output, testing::HasSubstr (expected_output));
240240 EXPECT_EQ (Ions_Move_Basic::converged, false );
241241 EXPECT_EQ (Ions_Move_Basic::update_iter, 5 );
242- EXPECT_EQ (Ions_Move_Basic::relax_method, " bfgs" );
242+ EXPECT_EQ (Ions_Move_Basic::relax_method[ 0 ] , " bfgs" );
243243 EXPECT_DOUBLE_EQ (Ions_Move_Basic::largest_grad, 0.01 );
244244 EXPECT_DOUBLE_EQ (Ions_Move_Basic::best_xxx, -1.0 );
245245 EXPECT_DOUBLE_EQ (Ions_Move_Basic::relax_bfgs_init, 70.0 );
@@ -279,7 +279,7 @@ TEST_F(IonsMoveCGTest, TestStartNoTrialGotoCase1)
279279 EXPECT_THAT (output, testing::HasSubstr (expected_output));
280280 EXPECT_EQ (Ions_Move_Basic::converged, false );
281281 EXPECT_EQ (Ions_Move_Basic::update_iter, 5 );
282- EXPECT_EQ (Ions_Move_Basic::relax_method, " bfgs" );
282+ EXPECT_EQ (Ions_Move_Basic::relax_method[ 0 ] , " bfgs" );
283283 EXPECT_DOUBLE_EQ (Ions_Move_Basic::largest_grad, 0.001 );
284284 EXPECT_DOUBLE_EQ (Ions_Move_Basic::best_xxx, -1.0 );
285285 EXPECT_DOUBLE_EQ (Ions_Move_Basic::relax_bfgs_init, 490.0 );
@@ -318,7 +318,7 @@ TEST_F(IonsMoveCGTest, TestStartNoTrialGotoCase2)
318318 EXPECT_THAT (output, testing::HasSubstr (expected_output));
319319 EXPECT_EQ (Ions_Move_Basic::converged, false );
320320 EXPECT_EQ (Ions_Move_Basic::update_iter, 5 );
321- EXPECT_EQ (Ions_Move_Basic::relax_method, " bfgs" );
321+ EXPECT_EQ (Ions_Move_Basic::relax_method[ 0 ] , " bfgs" );
322322 EXPECT_DOUBLE_EQ (Ions_Move_Basic::largest_grad, 0.01 );
323323 EXPECT_DOUBLE_EQ (Ions_Move_Basic::best_xxx, -1.0 );
324324 EXPECT_DOUBLE_EQ (Ions_Move_Basic::relax_bfgs_init, 70.0 );
@@ -358,7 +358,7 @@ TEST_F(IonsMoveCGTest, TestStartNoTrial)
358358 EXPECT_THAT (output, testing::HasSubstr (expected_output));
359359 EXPECT_EQ (Ions_Move_Basic::converged, false );
360360 EXPECT_EQ (Ions_Move_Basic::update_iter, 5 );
361- EXPECT_EQ (Ions_Move_Basic::relax_method, " bfgs" );
361+ EXPECT_EQ (Ions_Move_Basic::relax_method[ 0 ] , " bfgs" );
362362 EXPECT_DOUBLE_EQ (Ions_Move_Basic::largest_grad, 0.001 );
363363 EXPECT_DOUBLE_EQ (Ions_Move_Basic::best_xxx, -1.0 );
364364 EXPECT_NEAR (Ions_Move_Basic::relax_bfgs_init, 1.2345679012345678 , 1e-12 );
0 commit comments