Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Atom/AtomicInfo.cpp

    rd05088 rc26617  
    3434
    3535#include "CodePatterns/MemDebug.hpp"
     36
     37#include "CodePatterns/Log.hpp"
    3638
    3739#include "atom.hpp"
     
    7173      "Atom "+toString(_atom.getId())+" is not associated with any molecule.");
    7274  MolId = mol->getId();
     75  // accumulate bond info
     76  const BondList &ListOfBonds = _atom.getListOfBonds();
     77  bonds.reserve(ListOfBonds.size());
     78  for (BondList::const_iterator bonditer = ListOfBonds.begin();
     79      bonditer != ListOfBonds.end(); ++bonditer) {
     80    const BondInfo bondinfo(*bonditer);
     81    bonds.push_back(bondinfo);
     82    LOG(3, "DEBUG: Storing info for bond " << bondinfo.leftid << "<->" << bondinfo.rightid);
     83  }
    7384}
    7485
     
    101112    }
    102113
     114    // set bonds
     115    for (std::vector<BondInfo>::const_iterator bonditer = bonds.begin();
     116        bonditer != bonds.end(); ++bonditer)
     117      (*bonditer).RecreateBond();
     118
    103119    // setting molecule
    104120    molecule * const _mol = World::getInstance().getMolecule(MoleculeById(MolId));
Note: See TracChangeset for help on using the changeset viewer.