Changeset f10066 for src/Dynamics


Ignore:
Timestamp:
Aug 2, 2017, 9:39:33 PM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
ForceAnnealing_with_BondGraph_continued
Children:
5f18f1
Parents:
26de2a
Message:

tempcommit: In ForceAnnealing currentStep was used in some places, which is just meant for internal counting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Dynamics/ForceAnnealing.hpp

    r26de2a rf10066  
    295295        AtomicForceManipulator<T>::atoms.begin(),
    296296        AtomicForceManipulator<T>::atoms.end(),
    297         currentStep);
     297        CurrentTimeStep);
    298298    const BondVectors::container_t &sorted_bonds = bv.getSorted();
    299299
     
    370370
    371371    LOG(3, "DEBUG: current step is " << currentStep << ", given time step is " << CurrentTimeStep);
    372     const BondVectors::mapped_t bondvectors = bv.getBondVectorsAtStep(currentStep);
     372    const BondVectors::mapped_t bondvectors = bv.getBondVectorsAtStep(CurrentTimeStep);
    373373
    374374    for (BondVectors::container_t::const_iterator bondsiter = sorted_bonds.begin();
     
    427427            << (side == leftside ? "left" : "right") << " side of bond is " << currentGradient);
    428428        const Vector &oldPosition = bondatom[side]->getPositionAtStep(CurrentTimeStep-2 >= 0 ? CurrentTimeStep - 2 : 0);
    429         const Vector &currentPosition = bondatom[side]->getPositionAtStep(currentStep);
     429        const Vector &currentPosition = bondatom[side]->getPositionAtStep(CurrentTimeStep);
    430430        const Vector PositionDifference = currentPosition - oldPosition;
    431431        LOG(4, "DEBUG: old position is " << oldPosition);
     
    476476      atom &walker = *(*iter);
    477477      // extract largest components for showing progress of annealing
    478       const Vector currentGradient = walker.getAtomicForce();
     478      const Vector currentGradient = walker.getAtomicForceAtStep(CurrentTimeStep);
    479479      for(size_t i=0;i<NDIM;++i)
    480480        if (currentGradient[i] > maxComponents[i])
Note: See TracChangeset for help on using the changeset viewer.