Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/World.cpp

    r46ce1c r388ddd  
    234234  if (_step != WorldTime::getTime()) {
    235235    const unsigned int oldstep = WorldTime::getTime();
    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
     236    // set new time
    245237    WorldTime::getInstance().setTime(_step);
    246 
    247238    // TODO: removed when BondGraph creates the adjacency
    248     // 3. remove all of World's molecules
     239    // 1. remove all of World's molecules
    249240    for (MoleculeIterator iter = getMoleculeIter();
    250241        getMoleculeIter() != moleculeEnd();
     
    253244      destroyMolecule(*iter);
    254245    }
    255 
    256     // 4. scan for connected subgraphs => molecules
     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
    257254    DepthFirstSearchAnalysis DFS;
    258255    DFS();
     
    882879  delete configuration;
    883880  delete Thermostats;
    884   delete homologies;
    885881}
    886882
Note: See TracChangeset for help on using the changeset viewer.