Skip to content

Commit 94e5780

Browse files
committed
fix bug
1 parent f7f156d commit 94e5780

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

source/source_basis/module_pw/test_gpu/pw_basis_C2C.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ class PW_BASIS_K_GPU_TEST : public ::testing::Test
4444
int distribution_type = 1;
4545
bool xprime = false;
4646
const int nks = 1;
47-
ModuleBase::Vector3<double>* kvec_d;
48-
kvec_d = new ModuleBase::Vector3<double>[nks];
49-
kvec_d[0].set(0, 0, 0);
5047
// init
5148
const int mypool = 0;
5249
const int key = 1;
@@ -180,7 +177,6 @@ class PW_BASIS_K_GPU_TEST : public ::testing::Test
180177
}
181178
void TearDown() override
182179
{
183-
delete[] kvec_d; // mohan add 20250926
184180
delete[] h_rhog;
185181
delete[] h_rhogout;
186182
delete[] h_rhor;

0 commit comments

Comments
 (0)