Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Potentials/PartialNucleiChargeFitter.cpp

    r6b3e5e rf60d95  
    227227PartialNucleiChargeFitter::~PartialNucleiChargeFitter()
    228228{
    229   if (PartialCharges != NULL)
    230     delete PartialCharges;
    231 
    232   if (PotentialFromCharges != NULL)
    233     delete PotentialFromCharges;
     229  delete PotentialFromCharges;
    234230}
    235231
     
    239235  const size_t rows = SampledPotential.getDimension();
    240236  const size_t cols = positions.size();
    241 
    242   // allocate memory for PotentialFromCharges
    243   if (PotentialFromCharges != NULL) {
    244     delete PotentialFromCharges;
    245     PotentialFromCharges = NULL;
    246   }
    247237  PotentialFromCharges = new MatrixContent( rows, cols );
    248238  // store step length per axis
     
    295285{
    296286  // prepare PartialCharges
    297   if (PartialCharges != NULL) {
    298     delete PartialCharges;
    299     PartialCharges = NULL;
    300   }
    301287  PartialCharges = new VectorContent(positions.size());
    302288
Note: See TracChangeset for help on using the changeset viewer.