Changes in src/World.cpp [388ddd:46ce1c]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/World.cpp
r388ddd r46ce1c 234 234 if (_step != WorldTime::getTime()) { 235 235 const unsigned int oldstep = WorldTime::getTime(); 236 // set new time 236 237 // 1. copy bond graph (such not each addBond causes GUI update) 238 if (!areBondsPresent(_step)) { 239 // AtomComposite Set = getAllAtoms(); 240 // BG->cleanAdjacencyList(Set); 241 copyBondgraph(oldstep, _step); 242 } 243 244 // 2. set new time 237 245 WorldTime::getInstance().setTime(_step); 246 238 247 // TODO: removed when BondGraph creates the adjacency 239 // 1. remove all of World's molecules248 // 3. remove all of World's molecules 240 249 for (MoleculeIterator iter = getMoleculeIter(); 241 250 getMoleculeIter() != moleculeEnd(); … … 244 253 destroyMolecule(*iter); 245 254 } 246 // 2. copy bond graph 247 if (!areBondsPresent(_step)) { 248 // AtomComposite Set = getAllAtoms(); 249 // BG->cleanAdjacencyList(Set); 250 copyBondgraph(oldstep, _step); 251 } 252 253 // 3. scan for connected subgraphs => molecules 255 256 // 4. scan for connected subgraphs => molecules 254 257 DepthFirstSearchAnalysis DFS; 255 258 DFS(); … … 879 882 delete configuration; 880 883 delete Thermostats; 884 delete homologies; 881 885 } 882 886
Note:
See TracChangeset
for help on using the changeset viewer.