Changeset c4a725 for src/Dynamics


Ignore:
Timestamp:
Aug 2, 2017, 8:26:29 PM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
ForceAnnealing_with_BondGraph_continued
Children:
ef59aa
Parents:
ccbdf4
Message:

tempcommit: No more default anneal() without bondgrapg, and can't store remnant gradient in force.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Dynamics/ForceAnnealing.hpp

    rccbdf4 rc4a725  
    120120      if (_UseBondgraph)
    121121        annealWithBondGraph(_CurrentTimeStep, _offset, maxComponents);
    122       anneal(_CurrentTimeStep, _offset, maxComponents);
     122      // cannot store RemnantGradient in Atom's Force as it ruins BB stepwidth calculation
     123      else
     124        anneal(_CurrentTimeStep, _offset, maxComponents);
    123125    }
    124126
     
    487489      LOG(3, "DEBUG: Applying update " << update << " to atom #" << atomid
    488490          << ", namely " << *walker);
    489       walker->setPosition( walker->getPosition() + update );
    490       walker->setAtomicForce( RemnantGradient_per_atom[walker->getId()] );
     491      walker->setPosition( walker->getPosition() + update - CommonTranslation);
     492//      walker->setAtomicForce( RemnantGradient_per_atom[walker->getId()] );
    491493    }
    492494  }
Note: See TracChangeset for help on using the changeset viewer.