Skip to content

Commit 3374909

Browse files
committed
fix UTs
1 parent 7a58b10 commit 3374909

File tree

17 files changed

+0
-32
lines changed

17 files changed

+0
-32
lines changed

source/module_elecstate/module_dm/test/test_cal_dm_R.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ class DMTest : public testing::Test
7878
{
7979
delete paraV;
8080
delete[] ucell.atoms;
81-
delete[] ucell.iat2it;
82-
delete[] ucell.iat2ia;
8381
}
8482

8583
#ifdef __MPI

source/module_elecstate/module_dm/test/test_cal_dmk_psi.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ class DMTest : public testing::Test
7474
delete[] ucell.atoms[0].iw2m;
7575
delete[] ucell.atoms[0].iw2n;
7676
delete[] ucell.atoms;
77-
delete[] ucell.iat2it;
78-
delete[] ucell.iat2ia;
7977
}
8078

8179
#ifdef __MPI

source/module_elecstate/module_dm/test/test_dm_R_init.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ class DMTest : public testing::Test
7878
{
7979
delete paraV;
8080
delete[] ucell.atoms;
81-
delete[] ucell.iat2it;
82-
delete[] ucell.iat2ia;
8381
}
8482

8583
#ifdef __MPI

source/module_elecstate/module_dm/test/test_dm_constructor.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ class DMTest : public testing::Test
7575
{
7676
delete paraV;
7777
delete[] ucell.atoms;
78-
delete[] ucell.iat2it;
79-
delete[] ucell.iat2ia;
8078
}
8179

8280
#ifdef __MPI

source/module_esolver/test/esolver_dp_test.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ class ESolverDPTest : public ::testing::Test
6565
{
6666
// Clean up after each test
6767
delete esolver;
68-
delete[] ucell.iat2it;
69-
delete[] ucell.iat2ia;
7068
delete[] ucell.atoms;
7169
delete[] ucell.atom_label;
7270
}

source/module_hamilt_lcao/hamilt_lcaodft/operator_lcao/test/test_T_NL_cd.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ class TNLTest : public ::testing::Test
9292
delete HR;
9393
delete paraV;
9494
delete[] ucell.atoms;
95-
delete[] ucell.iat2it;
96-
delete[] ucell.iat2ia;
9795
delete[] ucell.infoNL.Beta;
9896
}
9997

source/module_hamilt_lcao/hamilt_lcaodft/operator_lcao/test/test_dftu.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ class DFTUTest : public ::testing::Test
106106
delete DMR;
107107
delete paraV;
108108
delete[] ucell.atoms;
109-
delete[] ucell.iat2it;
110-
delete[] ucell.iat2ia;
111109
}
112110

113111
#ifdef __MPI

source/module_hamilt_lcao/hamilt_lcaodft/operator_lcao/test/test_ekineticnew.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ class EkineticNewTest : public ::testing::Test
6666
delete HR;
6767
delete paraV;
6868
delete[] ucell.atoms;
69-
delete[] ucell.iat2it;
70-
delete[] ucell.iat2ia;
7169
}
7270

7371
#ifdef __MPI

source/module_hamilt_lcao/hamilt_lcaodft/operator_lcao/test/test_nonlocalnew.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ class NonlocalNewTest : public ::testing::Test
9090
delete HR;
9191
delete paraV;
9292
delete[] ucell.atoms;
93-
delete[] ucell.iat2it;
94-
delete[] ucell.iat2ia;
9593
delete[] ucell.infoNL.Beta;
9694
}
9795

source/module_hamilt_lcao/hamilt_lcaodft/operator_lcao/test/test_overlapnew.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ class OverlapNewTest : public ::testing::Test
6666
delete SR;
6767
delete paraV;
6868
delete[] ucell.atoms;
69-
delete[] ucell.iat2it;
70-
delete[] ucell.iat2ia;
7169
}
7270

7371
#ifdef __MPI

0 commit comments

Comments
 (0)