Changeset ef0f8f for src/LinkedCell/LinkedCell_Model_changeModel.cpp
- Timestamp:
- Apr 23, 2021, 8:34:22 PM (5 years ago)
- Branches:
- Candidate_v1.7.0, stable
- Children:
- f3eb6a
- Parents:
- d9e1d1
- git-author:
- Frederik Heber <frederik.heber@…> (10/03/20 21:21:28)
- git-committer:
- Frederik Heber <frederik.heber@…> (04/23/21 20:34:22)
- File:
-
- 1 edited
-
src/LinkedCell/LinkedCell_Model_changeModel.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/LinkedCell/LinkedCell_Model_changeModel.cpp
rd9e1d1 ref0f8f 40 40 #include "CodePatterns/toString.hpp" 41 41 42 #include "Atom/TesselPoint.hpp" 43 42 44 /** Constructor of LinkedCell_Model::changeModel. 43 45 * … … 69 71 const TesselPoint *Walker, 70 72 const LinkedCell_Model::Update::PriorityLevel priority, 71 boost::function<void (const TesselPoint *)> _updateMethod 73 boost::function<void (const TesselPoint *)> _updateMethod, 74 const std::string name 72 75 ) 73 76 { … … 78 81 OBSERVE; 79 82 delete iter->second; 80 iter->second = new Update(_updateMethod, Walker, priority );83 iter->second = new Update(_updateMethod, Walker, priority, name); 81 84 } else { 82 LOG(2, "INFO: Rejecting update for LinkedCell_Model as higher prioritized one is present.");85 LOG(2, "INFO: Rejecting update '" << name << "' for LinkedCell_Model as higher prioritized one is present."); 83 86 } 84 87 } else { 85 88 // insert new update 86 LOG(2, "INFO: Placing new update into queue for LinkedCell_Model.");89 LOG(2, "INFO: Placing new update '" << name << "' into queue for LinkedCell_Model."); 87 90 OBSERVE; 88 queue.insert( std::make_pair(Walker, new Update(_updateMethod, Walker, priority )) );91 queue.insert( std::make_pair(Walker, new Update(_updateMethod, Walker, priority, name)) ); 89 92 } 90 93 } … … 99 102 !queue.empty(); 100 103 iter = queue.begin()) { 101 LOG(2, "INFO: Performing update ..."); 104 LOG(2, "INFO: Performing update '"+iter->second->getName()+"' on " 105 +toString(iter->first)+"..."); 102 106 // perform update 103 107 (*iter->second)();
Note:
See TracChangeset
for help on using the changeset viewer.
