Changeset c459c4 for src/Actions/MoleculeAction/ForceAnnealingAction.cpp
- Timestamp:
- Nov 5, 2017, 1:55:28 AM (8 years ago)
- Branches:
- ForceAnnealing_with_BondGraph_continued_betteresults
- Children:
- 1c8a80
- Parents:
- d79ef32
- git-author:
- Frederik Heber <frederik.heber@…> (06/27/17 21:02:47)
- git-committer:
- Frederik Heber <frederik.heber@…> (11/05/17 01:55:28)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/MoleculeAction/ForceAnnealingAction.cpp
rd79ef32 rc459c4 71 71 return Action::failure; 72 72 } 73 // first, we need to sort the mixin according to their ids (as selected atoms are sorted 74 // according to their arbitrary address in memory) 75 set.sortByIds(); 76 77 // create undo state for all selected atoms (undo info) 78 std::vector<AtomicInfo> UndoInfo; 79 UndoInfo.reserve(set.size()); 80 { 81 for (World::AtomSelectionConstIterator iter = World::getInstance().beginAtomSelection(); 82 iter != World::getInstance().endAtomSelection(); 83 ++iter) 84 UndoInfo.push_back(AtomicInfo(*(iter->second))); 85 } 86 73 87 // we always operate relative to current time step, except on single debug output 74 88 size_t CurrentStep = WorldTime::getInstance().getTime(); … … 103 117 else 104 118 LOG(2, "File " << params.forcesfile.get() << " found and parsed."); 105 }106 107 // create undo state for all selected atoms (undo info)108 std::vector<AtomicInfo> UndoInfo;109 UndoInfo.reserve(set.size());110 {111 for (World::AtomSelectionConstIterator iter = World::getInstance().beginAtomSelection();112 iter != World::getInstance().endAtomSelection();113 ++iter)114 UndoInfo.push_back(AtomicInfo(*(iter->second)));115 119 } 116 120
Note:
See TracChangeset
for help on using the changeset viewer.