Changeset 8c6b68 for src/Atom/atom.cpp


Ignore:
Timestamp:
Apr 10, 2018, 6:43:12 AM (7 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
AutomationFragmentation_failures, Candidate_v1.6.1, ChemicalSpaceEvaluator, Enhanced_StructuralOptimization_continued, Exclude_Hydrogens_annealWithBondGraph, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_contraction-expansion, Gui_displays_atomic_force_velocity, PythonUI_with_named_parameters, StoppableMakroAction, TremoloParser_IncreasedPrecision
Children:
6145577
Parents:
efd020
git-author:
Frederik Heber <frederik.heber@…> (08/03/17 10:46:48)
git-committer:
Frederik Heber <frederik.heber@…> (04/10/18 06:43:12)
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
  • TabularUnified src/Atom/atom.cpp

    refd020 r8c6b68  
    108108}
    109109
    110 void atom::removeStep(const unsigned int _step)
    111 {
    112   LOG(4,"atom::removeStep() called.");
     110void atom::removeSteps(const unsigned int _firststep, const unsigned int _laststep)
     111{
     112  LOG(4,"atom::removeSteps() called.");
    113113  // append to position, velocity and force vector
    114   AtomInfo::removeTrajectoryStep(_step);
     114  AtomInfo::removeTrajectorySteps(_firststep, _laststep);
    115115  // append to ListOfBonds vector
    116   BondedParticleInfo::removeTrajectoryStep(_step);
     116  BondedParticleInfo::removeTrajectorySteps(_firststep, _laststep);
    117117}
    118118
Note: See TracChangeset for help on using the changeset viewer.