@@ -276,7 +276,6 @@ TEST_F(ElecStateTest, FixedWeights)
276276{
277277 EXPECT_EQ (PARAM.input .nbands , 6 );
278278 PARAM.input .nelec = 30 ;
279- bool skip_weights;
280279 K_Vectors* klist = new K_Vectors;
281280 klist->set_nks (5 );
282281 elecstate->klist = klist;
@@ -287,7 +286,7 @@ TEST_F(ElecStateTest, FixedWeights)
287286 {
288287 ocp_kb[i] = 1.0 ;
289288 }
290- elecstate::fixed_weights (ocp_kb, PARAM.input .nbands , PARAM.input .nelec ,klist,elecstate->wg ,skip_weights);
289+ elecstate::fixed_weights (ocp_kb, PARAM.input .nbands , PARAM.input .nelec ,klist,elecstate->wg ,elecstate-> skip_weights );
291290 EXPECT_EQ (elecstate->wg (0 , 0 ), 1.0 );
292291 EXPECT_EQ (elecstate->wg (klist->get_nks () - 1 , PARAM.input .nbands - 1 ), 1.0 );
293292 EXPECT_TRUE (elecstate->skip_weights );
@@ -297,7 +296,6 @@ TEST_F(ElecStateDeathTest, FixedWeightsWarning1)
297296{
298297 EXPECT_EQ (PARAM.input .nbands , 6 );
299298 PARAM.input .nelec = 30 ;
300- bool skip_weights;
301299 K_Vectors* klist = new K_Vectors;
302300 klist->set_nks (5 );
303301 elecstate->klist = klist;
@@ -309,7 +307,7 @@ TEST_F(ElecStateDeathTest, FixedWeightsWarning1)
309307 ocp_kb[i] = 1.0 ;
310308 }
311309 testing::internal::CaptureStdout ();
312- EXPECT_EXIT (elecstate::fixed_weights (ocp_kb, PARAM.input .nbands , PARAM.input .nelec ,klist,elecstate->wg ,skip_weights),
310+ EXPECT_EXIT (elecstate::fixed_weights (ocp_kb, PARAM.input .nbands , PARAM.input .nelec ,klist,elecstate->wg ,elecstate-> skip_weights ),
313311 ::testing::ExitedWithCode (1 ),
314312 "");
315313 output = testing::internal::GetCapturedStdout ();
@@ -320,7 +318,6 @@ TEST_F(ElecStateDeathTest, FixedWeightsWarning2)
320318{
321319 EXPECT_EQ (PARAM.input .nbands , 6 );
322320 PARAM.input .nelec = 29 ;
323- bool skip_weights;
324321 K_Vectors* klist = new K_Vectors;
325322 klist->set_nks (5 );
326323 elecstate->klist = klist;
@@ -332,7 +329,7 @@ TEST_F(ElecStateDeathTest, FixedWeightsWarning2)
332329 ocp_kb[i] = 1.0 ;
333330 }
334331 testing::internal::CaptureStdout ();
335- EXPECT_EXIT (elecstate::fixed_weights (ocp_kb, PARAM.input .nbands , PARAM.input .nelec ,klist,elecstate->wg ,skip_weights),
332+ EXPECT_EXIT (elecstate::fixed_weights (ocp_kb, PARAM.input .nbands , PARAM.input .nelec ,klist,elecstate->wg ,elecstate-> skip_weights ),
336333 ::testing::ExitedWithCode (1 ),
337334 "");
338335 output = testing::internal::GetCapturedStdout ();
0 commit comments