- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Potentials/PartialNucleiChargeFitter.cpp
r6b3e5e rf60d95 227 227 PartialNucleiChargeFitter::~PartialNucleiChargeFitter() 228 228 { 229 if (PartialCharges != NULL) 230 delete PartialCharges; 231 232 if (PotentialFromCharges != NULL) 233 delete PotentialFromCharges; 229 delete PotentialFromCharges; 234 230 } 235 231 … … 239 235 const size_t rows = SampledPotential.getDimension(); 240 236 const size_t cols = positions.size(); 241 242 // allocate memory for PotentialFromCharges243 if (PotentialFromCharges != NULL) {244 delete PotentialFromCharges;245 PotentialFromCharges = NULL;246 }247 237 PotentialFromCharges = new MatrixContent( rows, cols ); 248 238 // store step length per axis … … 295 285 { 296 286 // prepare PartialCharges 297 if (PartialCharges != NULL) {298 delete PartialCharges;299 PartialCharges = NULL;300 }301 287 PartialCharges = new VectorContent(positions.size()); 302 288
Note:
See TracChangeset
for help on using the changeset viewer.