Changes in src/LinkedCell/linkedcell.cpp [052c10:94d5ac6]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/LinkedCell/linkedcell.cpp
r052c10 r94d5ac6 141 141 LinkedCell_deprecated::~LinkedCell_deprecated() 142 142 { 143 if (LC != NULL) { 144 for (index=0;index<N[0]*N[1]*N[2];index++) { 145 // don't delete pointers are just "borrowed" 146 LC[index].clear(); 147 } 148 delete[] LC; 149 } 143 if (LC != NULL) 144 for (index=0;index<N[0]*N[1]*N[2];index++) 145 LC[index].clear(); 146 delete[](LC); 150 147 for(int i=0;i<NDIM;i++) 151 148 N[i] = 0; … … 370 367 } 371 368 } 372 delete NeighbourList;369 delete(NeighbourList); 373 370 } else 374 371 ELOG(2, "Around vector " << *center << " there are no atoms.");
Note:
See TracChangeset
for help on using the changeset viewer.