Changes in src/atom_bondedparticle.cpp [a67d19:b8d4a3]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/atom_bondedparticle.cpp
ra67d19 rb8d4a3 44 44 void BondedParticle::OutputBondOfAtom() const 45 45 { 46 DoLog(4) && (Log() << Verbose(4) << "Atom " << Name << "/" << nr << " with " << ListOfBonds.size() << " bonds: " << endl);46 Log() << Verbose(4) << "Atom " << Name << "/" << nr << " with " << ListOfBonds.size() << " bonds: " << endl; 47 47 int TotalDegree = 0; 48 48 for (BondList::const_iterator Runner = ListOfBonds.begin(); Runner != ListOfBonds.end(); ++Runner) { 49 DoLog(4) && (Log() << Verbose(4) << **Runner << endl);49 Log() << Verbose(4) << **Runner << endl; 50 50 TotalDegree += (*Runner)->BondDegree; 51 51 } 52 DoLog(4) && (Log() << Verbose(4) << " -- TotalDegree: " << TotalDegree << endl);52 Log() << Verbose(4) << " -- TotalDegree: " << TotalDegree << endl; 53 53 }; 54 54 … … 75 75 }; 76 76 77 /** 78 * Adds a bond between this bonded particle and another. Does nothing if this 79 * bond already exists. 80 * 81 * \param bonding partner 82 */ 83 void BondedParticle::addBond(BondedParticle* Partner) { 84 if (IsBondedTo(Partner)) { 85 return; 86 } 87 88 bond* newBond = new bond((atom*) this, (atom*) Partner, 1, 0); 89 RegisterBond(newBond); 90 Partner->RegisterBond(newBond); 91 } 92 77 93 /** Puts a given bond into atom::ListOfBonds. 78 94 * \param *Binder bond to insert … … 86 102 status = true; 87 103 } else { 88 DoeLog(1) && (eLog()<< Verbose(1) << *Binder << " does not contain " << *this << "." << endl);104 eLog() << Verbose(1) << *Binder << " does not contain " << *this << "." << endl; 89 105 } 90 106 } else { 91 DoeLog(1) && (eLog()<< Verbose(1) << "Binder is " << Binder << "." << endl);107 eLog() << Verbose(1) << "Binder is " << Binder << "." << endl; 92 108 } 93 109 return status; … … 105 121 status = true; 106 122 } else { 107 DoeLog(1) && (eLog()<< Verbose(1) << *Binder << " does not contain " << *this << "." << endl);123 eLog() << Verbose(1) << *Binder << " does not contain " << *this << "." << endl; 108 124 } 109 125 } else { 110 DoeLog(1) && (eLog()<< Verbose(1) << "Binder is " << Binder << "." << endl);126 eLog() << Verbose(1) << "Binder is " << Binder << "." << endl; 111 127 } 112 128 return status; … … 150 166 //Log() << Verbose(2) << "Increased bond degree for bond " << *CandidateBond << "." << endl; 151 167 } else { 152 DoeLog(2) && (eLog()<< Verbose(2) << "Could not find correct degree for atom " << *this << "." << endl);168 eLog() << Verbose(2) << "Could not find correct degree for atom " << *this << "." << endl; 153 169 FalseBondDegree++; 154 170 }
Note:
See TracChangeset
for help on using the changeset viewer.