@@ -67,7 +67,7 @@ void Grid::setMemberVariables(
6767
6868 this ->delete_Cell ();
6969 // mohan add 2010-09-05
70- AdjacentSet::call_times = 0 ;
70+ // AdjacentSet::call_times = 0;
7171
7272 this ->natom = input.getAmount ();
7373 if (test_grid)ModuleBase::GlobalFunc::OUT (ofs_in, " natom" , natom);
@@ -126,14 +126,14 @@ void Grid::setMemberVariables(
126126 if (test_grid)ModuleBase::GlobalFunc::OUT (ofs_in," CellNumber" ,dx,dy,dz);
127127
128128
129- Cell = new CellSet**[dx] ;
129+ Cell. resize (dx) ;
130130 for (int i = 0 ;i < dx;i++)
131131 {
132- Cell[i] = new CellSet*[dy] ;
132+ Cell[i]. resize (dy) ;
133133
134134 for (int j = 0 ;j < dy;j++)
135135 {
136- Cell[i][j] = new CellSet[dz] ;
136+ Cell[i][j]. resize (dz) ;
137137 }
138138 }
139139 this ->init_cell_flag = true ;
@@ -163,7 +163,7 @@ void Grid::setBoundaryAdjacent(
163163 this ->Construct_Adjacent_begin ();
164164 }
165165
166- if (test_grid)ModuleBase::GlobalFunc::OUT (ofs_in," Adjacent_set call times" ,AdjacentSet::call_times);
166+ // if(test_grid)ModuleBase::GlobalFunc::OUT(ofs_in,"Adjacent_set call times",AdjacentSet::call_times);
167167
168168 // if (test_grid)ModuleBase::GlobalFunc::DONE(ofs_in, "Construct_Adjacent");
169169
@@ -220,7 +220,6 @@ void Grid::Build_Hash_Table(const UnitCell &ucell, const Atom_input &input)
220220 for (int i = 0 ; i < input.getAmount (); ++i)
221221 {
222222 const FAtom &atom = input.getFakeAtom (i);
223- all_atom_map[{atom.x (), atom.y (), atom.z ()}] = atom;
224223
225224 int a, b, c;
226225 this ->In_Which_Cell (ucell, a, b, c, atom);
@@ -247,7 +246,7 @@ void Grid::Construct_Adjacent_expand(
247246// ----------------------------------------------------------
248247 ModuleBase::timer::tick (" Grid" , " Construct_Adjacent_expand" );
249248
250- AdjacentSet::setExpandFlag (this ->expand_flag );
249+ /* AdjacentSet::setExpandFlag(this->expand_flag);
251250
252251 AdjacentSet::setDx(this->dx);
253252
@@ -265,7 +264,7 @@ void Grid::Construct_Adjacent_expand(
265264
266265 AdjacentSet::setCenter(true_i * dy * dz + true_j * dz + true_k);
267266
268-
267+ */
269268// if(test_grid)OUT(ofs_running,"GridCenter",true_i,true_j,true_k);
270269// if(test_grid)OUT(ofs_running,"GridDim",dx,dy,dz);
271270
0 commit comments