Changes in src/atom_bondedparticle.cpp [a67d19:791138]
- File:
-
- 1 edited
-
src/atom_bondedparticle.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/atom_bondedparticle.cpp
ra67d19 r791138 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 … … 56 56 * \param *AdjacencyFile output stream 57 57 */ 58 void BondedParticle::OutputAdjacency(ofstream * constAdjacencyFile) const58 void BondedParticle::OutputAdjacency(ofstream *AdjacencyFile) const 59 59 { 60 60 *AdjacencyFile << nr << "\t"; … … 62 62 *AdjacencyFile << (*Runner)->GetOtherAtom(this)->nr << "\t"; 63 63 *AdjacencyFile << endl; 64 };65 66 /** Output of atom::nr along each bond partner per line.67 * Only bonds are printed where atom::nr is smaller than the one of the bond partner.68 * \param *AdjacencyFile output stream69 */70 void BondedParticle::OutputBonds(ofstream * const BondFile) const71 {72 for (BondList::const_iterator Runner = ListOfBonds.begin(); Runner != ListOfBonds.end(); (++Runner))73 if (nr < (*Runner)->GetOtherAtom(this)->nr)74 *BondFile << nr << "\t" << (*Runner)->GetOtherAtom(this)->nr << "\n";75 64 }; 76 65 … … 86 75 status = true; 87 76 } else { 88 DoeLog(1) && (eLog()<< Verbose(1) << *Binder << " does not contain " << *this << "." << endl);77 eLog() << Verbose(1) << *Binder << " does not contain " << *this << "." << endl; 89 78 } 90 79 } else { 91 DoeLog(1) && (eLog()<< Verbose(1) << "Binder is " << Binder << "." << endl);80 eLog() << Verbose(1) << "Binder is " << Binder << "." << endl; 92 81 } 93 82 return status; … … 105 94 status = true; 106 95 } else { 107 DoeLog(1) && (eLog()<< Verbose(1) << *Binder << " does not contain " << *this << "." << endl);96 eLog() << Verbose(1) << *Binder << " does not contain " << *this << "." << endl; 108 97 } 109 98 } else { 110 DoeLog(1) && (eLog()<< Verbose(1) << "Binder is " << Binder << "." << endl);99 eLog() << Verbose(1) << "Binder is " << Binder << "." << endl; 111 100 } 112 101 return status; … … 150 139 //Log() << Verbose(2) << "Increased bond degree for bond " << *CandidateBond << "." << endl; 151 140 } else { 152 DoeLog(2) && (eLog()<< Verbose(2) << "Could not find correct degree for atom " << *this << "." << endl);141 eLog() << Verbose(2) << "Could not find correct degree for atom " << *this << "." << endl; 153 142 FalseBondDegree++; 154 143 }
Note:
See TracChangeset
for help on using the changeset viewer.
