Changeset 8ddd07 for src/Dynamics
- Timestamp:
- Apr 10, 2018, 6:43:11 AM (7 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Dynamics/AtomicForceManipulator.hpp
r0477b0 r8ddd07 82 82 Vector tempVector; 83 83 size_t i=0; 84 84 85 for(typename AtomSetMixin<T>::iterator iter = atoms.begin(); iter != atoms.end(); ++iter,++i) { 85 86 for(size_t d=0;d<NDIM;d++) { 86 87 tempVector[d] = Force.Matrix[0][i][d+offset]*(IsAngstroem ? AtomicLengthToAngstroem : 1.); 87 88 } 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])+"."); 88 93 tempVector += (*iter)->getAtomicForceAtStep(TimeStep); 89 94 (*iter)->setAtomicForceAtStep(TimeStep, tempVector);
Note:
See TracChangeset
for help on using the changeset viewer.