Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/LinkedCell/linkedcell.cpp

    r052c10 r94d5ac6  
    141141LinkedCell_deprecated::~LinkedCell_deprecated()
    142142{
    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);
    150147  for(int i=0;i<NDIM;i++)
    151148    N[i] = 0;
     
    370367      }
    371368    }
    372     delete NeighbourList;
     369    delete(NeighbourList);
    373370  } else
    374371    ELOG(2, "Around vector " << *center << " there are no atoms.");
Note: See TracChangeset for help on using the changeset viewer.