Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/World.cpp

    r388ddd r46ce1c  
    234234  if (_step != WorldTime::getTime()) {
    235235    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
    237245    WorldTime::getInstance().setTime(_step);
     246
    238247    // TODO: removed when BondGraph creates the adjacency
    239     // 1. remove all of World's molecules
     248    // 3. remove all of World's molecules
    240249    for (MoleculeIterator iter = getMoleculeIter();
    241250        getMoleculeIter() != moleculeEnd();
     
    244253      destroyMolecule(*iter);
    245254    }
    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
    254257    DepthFirstSearchAnalysis DFS;
    255258    DFS();
     
    879882  delete configuration;
    880883  delete Thermostats;
     884  delete homologies;
    881885}
    882886
Note: See TracChangeset for help on using the changeset viewer.