Skip to content

Commit f6e345f

Browse files
authored
Fix: correct the names of ut generated temp files in std::remove func (#6208)
1 parent eadb2e0 commit f6e345f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/module_io/test/to_qo_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void define_fcc_cell(UnitCell& ucell)
6363
PARAM.sys.global_out_dir = "./";
6464
PARAM.input.qo_screening_coeff = {0.1, 0.1};
6565
PARAM.input.qo_thr = 1e-6;
66-
GlobalV::ofs_running = std::ofstream("unittest.log");
66+
// GlobalV::ofs_running = std::ofstream("unittest.log");
6767
GlobalV::MY_RANK = 0;
6868
GlobalV::NPROC = 1;
6969
}
@@ -98,7 +98,7 @@ void define_sc_cell(UnitCell& ucell)
9898
PARAM.sys.global_out_dir = "./";
9999
PARAM.input.qo_screening_coeff = {0.1};
100100
PARAM.input.qo_thr = 1e-6;
101-
GlobalV::ofs_running = std::ofstream("unittest.log");
101+
// GlobalV::ofs_running = std::ofstream("unittest.log");
102102
GlobalV::MY_RANK = 0;
103103
GlobalV::NPROC = 1;
104104
}
@@ -1298,7 +1298,7 @@ TEST_F(toQOTest, CalculateOvlpKGamma)
12981298
EXPECT_TRUE(all_real);
12991299
for(int iR = 0; iR < tqo.nR(); iR++)
13001300
{
1301-
std::string fovlpk = "QO_ovlpk_" + std::to_string(iR) + ".dat";
1301+
std::string fovlpk = "QO_ovlpR_" + std::to_string(iR) + ".dat";
13021302
std::remove(fovlpk.c_str());
13031303
}
13041304
}
@@ -1338,7 +1338,7 @@ TEST_F(toQOTest, CalculateOvlpKSlaterGamma)
13381338
EXPECT_TRUE(all_real);
13391339
for(int iR = 0; iR < tqo.nR(); iR++)
13401340
{
1341-
std::string fovlpk = "QO_ovlpk_" + std::to_string(iR) + ".dat";
1341+
std::string fovlpk = "QO_ovlpR_" + std::to_string(iR) + ".dat";
13421342
std::remove(fovlpk.c_str());
13431343
}
13441344
}

0 commit comments

Comments
 (0)