@@ -91,7 +91,7 @@ class RhoIOTest : public ::testing::Test
9191TEST_F (RhoIOTest, Read)
9292{
9393 int is = 0 ;
94- std::string fn = " ./support/chgs1 .cube" ;
94+ std::string fn = " ./support/chg .cube" ;
9595 int nx = 36 ;
9696 int ny = 36 ;
9797 int nz = 36 ;
@@ -117,9 +117,9 @@ TEST_F(RhoIOTest, Write)
117117 ucell->atoms [0 ].tau [1 ] = ModuleBase::Vector3<double >(-0.75 , 0.75 , 0.75 );
118118 ucell->atoms [0 ].ncpp .zv = 4 ;
119119 Parallel_Grid pgrid (nx, ny, nz, nz, nrxx, nz, 1 );
120- ModuleIO::read_vdata_palgrid (pgrid, my_rank, ofs_running, " support/chgs1 .cube" , rho[0 ], ucell->nat );
120+ ModuleIO::read_vdata_palgrid (pgrid, my_rank, ofs_running, " support/chg .cube" , rho[0 ], ucell->nat );
121121 ModuleIO::write_vdata_palgrid (pgrid, rho[0 ], 0 , nspin, 0 , " test_write_vdata_palgrid.cube" , 0.461002 , ucell, 11 , 1 );
122- EXPECT_EQ (system (" diff -q test_write_vdata_palgrid.cube support/chgs1 .cube" ), 0 );
122+ EXPECT_EQ (system (" diff -q test_write_vdata_palgrid.cube support/chg .cube" ), 0 );
123123}
124124
125125TEST_F (RhoIOTest, TrilinearInterpolate)
@@ -130,7 +130,7 @@ TEST_F(RhoIOTest, TrilinearInterpolate)
130130 int nx_read = 36 ;
131131 int ny_read = 36 ;
132132 int nz_read = 36 ;
133- std::ifstream ifs (" ./support/chgs1 .cube" );
133+ std::ifstream ifs (" ./support/chg .cube" );
134134 for (int i = 0 ; i < 8 ; ++i)
135135 {
136136 ifs.ignore (300 , ' \n ' );
@@ -190,7 +190,7 @@ struct CubeIOTest : public ::testing::Test
190190 std::vector<double > atom_charge;
191191 std::vector<std::vector<double >> atom_pos;
192192 std::vector<double > data_read;
193- const std::string fn = " ./support/chgs1 .cube" ;
193+ const std::string fn = " ./support/chg .cube" ;
194194};
195195
196196
@@ -236,5 +236,5 @@ TEST_F(CubeIOTest, WriteCube)
236236 dx, dy, dz, atom_type,
237237 atom_charge, atom_pos, data_read, 11 );
238238
239- EXPECT_EQ (system (" diff -q test_write.cube ./support/chgs1 .cube" ), 0 );
239+ EXPECT_EQ (system (" diff -q test_write.cube ./support/chg .cube" ), 0 );
240240}
0 commit comments