Changeset 8ddd07 for src/Dynamics


Ignore:
Timestamp:
Apr 10, 2018, 6:43:11 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:
ecfcf6
Parents:
0477b0
git-author:
Frederik Heber <frederik.heber@…> (06/27/17 21:02:47)
git-committer:
Frederik Heber <frederik.heber@…> (04/10/18 06:43:11)
Message:

Sorting given selected atoms by ids in ForceAnnealing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Dynamics/AtomicForceManipulator.hpp

    r0477b0 r8ddd07  
    8282    Vector tempVector;
    8383    size_t i=0;
     84
    8485    for(typename AtomSetMixin<T>::iterator iter = atoms.begin(); iter != atoms.end(); ++iter,++i) {
    8586      for(size_t d=0;d<NDIM;d++) {
    8687        tempVector[d] = Force.Matrix[0][i][d+offset]*(IsAngstroem ? AtomicLengthToAngstroem : 1.);
    8788      }
     89      LOG(3, "DEBUG: Adding force vector " << tempVector << " to atom " << **iter);
     90      ASSERT( ((*iter)->getId()+1) == Force.Matrix[0][i][0],
     91          "AtomicForceManipulator::addForceMatrixToAtomicForce() - mismatch in ids "
     92          +toString(((*iter)->getId()+1))+" and file "+toString(Force.Matrix[0][i][0])+".");
    8893      tempVector += (*iter)->getAtomicForceAtStep(TimeStep);
    8994      (*iter)->setAtomicForceAtStep(TimeStep, tempVector);
Note: See TracChangeset for help on using the changeset viewer.