@@ -55,7 +55,7 @@ TEST_F(ReadWfcPwTest, ReadWfcPw)
5555 PARAM.input .nbands = 8 ;
5656 const int nbasis = wfcpw->npwk [0 ];
5757 ModuleBase::ComplexMatrix wfcatom (PARAM.input .nbands , nbasis);
58- ModuleIO::read_wfc_pw (filename, wfcpw, 0 , nkstot, wfcatom);
58+ ModuleIO::read_wfc_pw (filename, wfcpw, 0 , 0 , nkstot, wfcatom);
5959
6060 if (GlobalV::NPROC_IN_POOL == 1 )
6161 {
@@ -126,22 +126,22 @@ TEST_F(ReadWfcPwTest, NotFoundFile)
126126 // dat file
127127 std::string filename = " notfound.dat" ;
128128 testing::internal::CaptureStdout ();
129- EXPECT_EXIT (ModuleIO::read_wfc_pw (filename, wfcpw, 0 , nkstot, wfcatom), ::testing::ExitedWithCode (1 ), " " );
129+ EXPECT_EXIT (ModuleIO::read_wfc_pw (filename, wfcpw, 0 , 0 , nkstot, wfcatom), ::testing::ExitedWithCode (1 ), " " );
130130 std::string output = testing::internal::GetCapturedStdout ();
131131 EXPECT_THAT (output,testing::HasSubstr (" Can't open file notfound.dat" ));
132132
133133
134134 // txt file
135135 filename = " notfound.txt" ;
136136 testing::internal::CaptureStdout ();
137- EXPECT_EXIT (ModuleIO::read_wfc_pw (filename, wfcpw, 0 , nkstot, wfcatom), ::testing::ExitedWithCode (1 ), " " );
137+ EXPECT_EXIT (ModuleIO::read_wfc_pw (filename, wfcpw, 0 , 0 , nkstot, wfcatom), ::testing::ExitedWithCode (1 ), " " );
138138 output = testing::internal::GetCapturedStdout ();
139139 EXPECT_THAT (output,testing::HasSubstr (" Can't open file notfound.txt" ));
140140
141141 // other file
142142 filename = " notfound" ;
143143 testing::internal::CaptureStdout ();
144- EXPECT_EXIT (ModuleIO::read_wfc_pw (filename, wfcpw, 0 , nkstot, wfcatom), ::testing::ExitedWithCode (1 ), " " );
144+ EXPECT_EXIT (ModuleIO::read_wfc_pw (filename, wfcpw, 0 , 0 , nkstot, wfcatom), ::testing::ExitedWithCode (1 ), " " );
145145 output = testing::internal::GetCapturedStdout ();
146146 EXPECT_THAT (output,testing::HasSubstr (" Unknown file type und" ));
147147 }
@@ -166,7 +166,7 @@ TEST_F(ReadWfcPwTest, InconsistentBands)
166166 const int nbasis = wfcpw->npwk [0 ];
167167 ModuleBase::ComplexMatrix wfcatom (PARAM.input .nbands , nbasis);
168168 testing::internal::CaptureStdout ();
169- EXPECT_EXIT (ModuleIO::read_wfc_pw (filename, wfcpw, 0 , nkstot, wfcatom), ::testing::ExitedWithCode (1 ), " " );
169+ EXPECT_EXIT (ModuleIO::read_wfc_pw (filename, wfcpw, 0 , 0 , nkstot, wfcatom), ::testing::ExitedWithCode (1 ), " " );
170170 std::string output = testing::internal::GetCapturedStdout ();
171171 EXPECT_THAT (output, testing::HasSubstr (" nbands_in = 8" ));
172172 EXPECT_THAT (output, testing::HasSubstr (" nbands = 4" ));
@@ -198,7 +198,7 @@ TEST_F(ReadWfcPwTest, InconsistentKvec)
198198 const int nbasis = wfcpw->npwk [0 ];
199199 ModuleBase::ComplexMatrix wfcatom (PARAM.input .nbands , nbasis);
200200 testing::internal::CaptureStdout ();
201- EXPECT_EXIT (ModuleIO::read_wfc_pw (filename, wfcpw, 0 , nkstot, wfcatom), ::testing::ExitedWithCode (1 ), " " );
201+ EXPECT_EXIT (ModuleIO::read_wfc_pw (filename, wfcpw, 0 , 0 , nkstot, wfcatom), ::testing::ExitedWithCode (1 ), " " );
202202 std::string output = testing::internal::GetCapturedStdout ();
203203 EXPECT_THAT (output, testing::HasSubstr (" kvec_in[0] = 0 0 0" ));
204204 EXPECT_THAT (output, testing::HasSubstr (" kvec[0] = -1 1 -1" ));
@@ -226,7 +226,7 @@ TEST_F(ReadWfcPwTest, InconsistentLat0)
226226 const int nbasis = wfcpw->npwk [0 ];
227227 ModuleBase::ComplexMatrix wfcatom (PARAM.input .nbands , nbasis);
228228 testing::internal::CaptureStdout ();
229- EXPECT_EXIT (ModuleIO::read_wfc_pw (filename, wfcpw, 0 , nkstot, wfcatom), ::testing::ExitedWithCode (1 ), " " );
229+ EXPECT_EXIT (ModuleIO::read_wfc_pw (filename, wfcpw, 0 , 0 , nkstot, wfcatom), ::testing::ExitedWithCode (1 ), " " );
230230 std::string output = testing::internal::GetCapturedStdout ();
231231 EXPECT_THAT (output, testing::HasSubstr (" lat0_in = 5.3233" ));
232232 EXPECT_THAT (output, testing::HasSubstr (" lat0 = 5" ));
@@ -254,7 +254,7 @@ TEST_F(ReadWfcPwTest, InconsistentG)
254254 const int nbasis = wfcpw->npwk [0 ];
255255 ModuleBase::ComplexMatrix wfcatom (PARAM.input .nbands , nbasis);
256256 testing::internal::CaptureStdout ();
257- EXPECT_EXIT (ModuleIO::read_wfc_pw (filename, wfcpw, 0 , nkstot, wfcatom), ::testing::ExitedWithCode (1 ), " " );
257+ EXPECT_EXIT (ModuleIO::read_wfc_pw (filename, wfcpw, 0 , 0 , nkstot, wfcatom), ::testing::ExitedWithCode (1 ), " " );
258258 std::string output = testing::internal::GetCapturedStdout ();
259259 EXPECT_THAT (output, testing::HasSubstr (" G_in[0] = -1 -1 1\n G_in[1] = 1 1 1\n G_in[2] = -1 1 -1\n " ));
260260 EXPECT_THAT (
0 commit comments