Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/moleculelist.cpp

    rad011c r4c2643  
    506506  RealSpaceMatrix cell_size = World::getInstance().getDomain().getM();
    507507  RealSpaceMatrix cell_size_backup = cell_size;
     508  int count=0;
    508509
    509510  // store the fragments as config and as xyz
     
    519520
    520521    // correct periodic
    521     (*ListRunner)->ScanForPeriodicCorrection();
     522    if ((*ListRunner)->ScanForPeriodicCorrection()) {
     523      count++;
     524    }
    522525
    523526    // output xyz file
     
    543546    // center on edge
    544547    (*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.;
    545551    (*ListRunner)->SetBoxDimension(&BoxDimension); // update Box of atoms by boundary
    546552    for (int k = 0; k < NDIM; k++) {
     
    591597  // printing final number
    592598  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);
    593602
    594603  // restore cell_size
     
    741750  // remove the leaf itself
    742751  if (Leaf != NULL) {
     752    Leaf->removeAtomsinMolecule();
    743753    World::getInstance().destroyMolecule(Leaf);
    744754    Leaf = NULL;
Note: See TracChangeset for help on using the changeset viewer.