Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/atom_bondedparticle.cpp

    rb8d4a3 ra67d19  
    4444void BondedParticle::OutputBondOfAtom() const
    4545{
    46   Log() << Verbose(4) << "Atom " << Name << "/" << nr << " with " << ListOfBonds.size() << " bonds: " << endl;
     46  DoLog(4) && (Log() << Verbose(4) << "Atom " << Name << "/" << nr << " with " << ListOfBonds.size() << " bonds: " << endl);
    4747  int TotalDegree = 0;
    4848  for (BondList::const_iterator Runner = ListOfBonds.begin(); Runner != ListOfBonds.end(); ++Runner) {
    49     Log() << Verbose(4) << **Runner << endl;
     49    DoLog(4) && (Log() << Verbose(4) << **Runner << endl);
    5050    TotalDegree += (*Runner)->BondDegree;
    5151  }
    52   Log() << Verbose(4) << " -- TotalDegree: " << TotalDegree << endl;
     52  DoLog(4) && (Log() << Verbose(4) << " -- TotalDegree: " << TotalDegree << endl);
    5353};
    5454
     
    7575};
    7676
    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 
    9377/** Puts a given bond into atom::ListOfBonds.
    9478 * \param *Binder bond to insert
     
    10286      status = true;
    10387    } else {
    104       eLog() << Verbose(1) << *Binder << " does not contain " << *this << "." << endl;
     88      DoeLog(1) && (eLog()<< Verbose(1) << *Binder << " does not contain " << *this << "." << endl);
    10589    }
    10690  } else {
    107     eLog() << Verbose(1) << "Binder is " << Binder << "." << endl;
     91    DoeLog(1) && (eLog()<< Verbose(1) << "Binder is " << Binder << "." << endl);
    10892  }
    10993  return status;
     
    121105      status = true;
    122106    } else {
    123       eLog() << Verbose(1) << *Binder << " does not contain " << *this << "." << endl;
     107      DoeLog(1) && (eLog()<< Verbose(1) << *Binder << " does not contain " << *this << "." << endl);
    124108    }
    125109  } else {
    126     eLog() << Verbose(1) << "Binder is " << Binder << "." << endl;
     110    DoeLog(1) && (eLog()<< Verbose(1) << "Binder is " << Binder << "." << endl);
    127111  }
    128112  return status;
     
    166150      //Log() << Verbose(2) << "Increased bond degree for bond " << *CandidateBond << "." << endl;
    167151    } else {
    168       eLog() << Verbose(2) << "Could not find correct degree for atom " << *this << "." << endl;
     152      DoeLog(2) && (eLog()<< Verbose(2) << "Could not find correct degree for atom " << *this << "." << endl);
    169153      FalseBondDegree++;
    170154    }
Note: See TracChangeset for help on using the changeset viewer.