Changeset 24430b for src/Dynamics/BondVectors_impl.hpp
- Timestamp:
- Nov 12, 2017, 8:48:39 AM (7 years ago)
- Branches:
- ForceAnnealing_with_BondGraph_continued_betteresults
- Children:
- 1f244c
- Parents:
- fd0b4a
- git-author:
- Frederik Heber <frederik.heber@…> (06/29/17 14:40:12)
- git-committer:
- Frederik Heber <frederik.heber@…> (11/12/17 08:48:39)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Dynamics/BondVectors_impl.hpp
rfd0b4a r24430b 21 21 #include "Atom/atom.hpp" 22 22 23 BondVectors::BondVectors() : 24 map_is_dirty(false), 25 current_step_for_map((size_t)-1) 26 {} 27 23 28 template <class T> 24 29 void BondVectors::setFromAtomRange( … … 36 41 std::sort(container.begin(), container.end()); 37 42 container.erase(std::unique(container.begin(), container.end()), container.end()); 43 map_is_dirty = true; 38 44 } 39 45 46 const BondVectors::mapped_t& 47 BondVectors::getBondVectorsAtStep(const size_t &_step) const 48 { 49 if (map_is_dirty || (current_step_for_map != _step)) 50 recalculateBondVectorsAtStep(_step); 51 return current_mapped_vectors; 52 } 53 54 const BondVectors::container_t& 55 BondVectors::getSorted() const 56 { 57 ASSERT( !container.empty(), 58 "BondVectors::getSorted() - empty internal container, not set properly?"); 59 return container; 60 } 40 61 41 62 #endif /* DYNAMICS_BONDVECTORS_IMPL_HPP_ */
Note:
See TracChangeset
for help on using the changeset viewer.