Changes in src/LinkedCell/linkedcell.cpp [94d5ac6:052c10]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/LinkedCell/linkedcell.cpp
r94d5ac6 r052c10 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 LC[index].clear(); 146 delete[](LC); 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 } 147 150 for(int i=0;i<NDIM;i++) 148 151 N[i] = 0; … … 367 370 } 368 371 } 369 delete (NeighbourList);372 delete NeighbourList; 370 373 } else 371 374 ELOG(2, "Around vector " << *center << " there are no atoms.");
Note:
See TracChangeset
for help on using the changeset viewer.