Changes in src/moleculelist.cpp [ad011c:4c2643]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/moleculelist.cpp ¶
rad011c r4c2643 506 506 RealSpaceMatrix cell_size = World::getInstance().getDomain().getM(); 507 507 RealSpaceMatrix cell_size_backup = cell_size; 508 int count=0; 508 509 509 510 // store the fragments as config and as xyz … … 519 520 520 521 // correct periodic 521 (*ListRunner)->ScanForPeriodicCorrection(); 522 if ((*ListRunner)->ScanForPeriodicCorrection()) { 523 count++; 524 } 522 525 523 526 // output xyz file … … 543 546 // center on edge 544 547 (*ListRunner)->CenterEdge(&BoxDimension); 548 for (int k = 0; k < NDIM; k++) // if one edge is to small, set at least to 1 angstroem 549 if (BoxDimension[k] < 1.) 550 BoxDimension[k] += 1.; 545 551 (*ListRunner)->SetBoxDimension(&BoxDimension); // update Box of atoms by boundary 546 552 for (int k = 0; k < NDIM; k++) { … … 591 597 // printing final number 592 598 DoLog(2) && (Log() << Verbose(2) << "Final number of fragments: " << FragmentCounter << "." << endl); 599 600 // printing final number 601 DoLog(0) && (Log() << Verbose(0) << "For " << count << " fragments periodic correction would have been necessary." << endl); 593 602 594 603 // restore cell_size … … 741 750 // remove the leaf itself 742 751 if (Leaf != NULL) { 752 Leaf->removeAtomsinMolecule(); 743 753 World::getInstance().destroyMolecule(Leaf); 744 754 Leaf = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.