Ignore:
Timestamp:
Aug 3, 2017, 10:46:48 AM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
ForceAnnealing_with_BondGraph_continued
Children:
cee565
Parents:
fcc860
Message:

atom::removeStep() extended to removing interval of steps.

  • AtomInfo::removeTrajectorySteps() and BondedParticle::removeTrajectorySteps() changed and all calls adapted.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Atom/atom_bondedparticleinfo.cpp

    rfcc860 r4919f0  
    5151}
    5252
    53 void BondedParticleInfo::removeTrajectoryStep(const unsigned int _step)
     53void BondedParticleInfo::removeTrajectorySteps(const unsigned int _firststep, const unsigned int _laststep)
    5454{
    55   ListOfBonds.erase(_step);
    56   LOG(5,"BondedParticleInfo::removeTrajectoryStep() called, size is " << ListOfBonds.size());
     55  const BondTrajectory_t::iterator firstiter = ListOfBonds.lower_bound(_firststep);
     56  const BondTrajectory_t::iterator lastiter = ListOfBonds.upper_bound(_laststep);
     57  ListOfBonds.erase(firstiter, lastiter);
     58  LOG(5,"BondedParticleInfo::removeTrajectorySteps() called, size is " << ListOfBonds.size());
    5759}
    5860
Note: See TracChangeset for help on using the changeset viewer.