Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/atom_bondedparticle.cpp

    re138de r791138  
    4444void BondedParticle::OutputBondOfAtom() const
    4545{
    46   Log() << Verbose(4) << "Atom " << Name << "/" << nr << " with " << ListOfBonds.size() << " bonds: ";
     46  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(0) << **Runner << "\t";
     49    Log() << Verbose(4) << **Runner << endl;
    5050    TotalDegree += (*Runner)->BondDegree;
    5151  }
    52   Log() << Verbose(0) << " -- TotalDegree: " << TotalDegree << endl;
     52  Log() << Verbose(4) << " -- TotalDegree: " << TotalDegree << endl;
    5353};
    5454
     
    7575      status = true;
    7676    } else {
    77       Log() << Verbose(1) << "ERROR: " << *Binder << " does not contain " << *this << "." << endl;
     77      eLog() << Verbose(1) << *Binder << " does not contain " << *this << "." << endl;
    7878    }
    7979  } else {
    80     Log() << Verbose(1) << "ERROR: Binder is " << Binder << "." << endl;
     80    eLog() << Verbose(1) << "Binder is " << Binder << "." << endl;
    8181  }
    8282  return status;
     
    9494      status = true;
    9595    } else {
    96       Log() << Verbose(1) << "ERROR: " << *Binder << " does not contain " << *this << "." << endl;
     96      eLog() << Verbose(1) << *Binder << " does not contain " << *this << "." << endl;
    9797    }
    9898  } else {
    99     Log() << Verbose(1) << "ERROR: Binder is " << Binder << "." << endl;
     99    eLog() << Verbose(1) << "Binder is " << Binder << "." << endl;
    100100  }
    101101  return status;
     
    121121  bond *CandidateBond = NULL;
    122122
     123  NoBonds = CountBonds();
    123124  //Log() << Verbose(3) << "Walker " << *this << ": " << (int)this->type->NoValenceOrbitals << " > " << NoBonds << "?" << endl;
    124   NoBonds = CountBonds();
    125125  if ((int)(type->NoValenceOrbitals) > NoBonds) { // we have a mismatch, check all bonding partners for mismatch
    126126    for (BondList::const_iterator Runner = ListOfBonds.begin(); Runner != ListOfBonds.end(); (++Runner)) {
    127127      OtherWalker = (*Runner)->GetOtherAtom(this);
    128128      OtherNoBonds = OtherWalker->CountBonds();
    129       //Log() << Verbose(3) << "OtherWalker " << *OtherWalker << ": " << (int)OtherWalker->type->NoValenceOrbitals << " > " << NoBonds << "?" << endl;
    130       if ((int)(OtherWalker->type->NoValenceOrbitals) > NoBonds) { // check if possible candidate
     129      //Log() << Verbose(3) << "OtherWalker " << *OtherWalker << ": " << (int)OtherWalker->type->NoValenceOrbitals << " > " << OtherNoBonds << "?" << endl;
     130      if ((int)(OtherWalker->type->NoValenceOrbitals) > OtherNoBonds) { // check if possible candidate
    131131        if ((CandidateBond == NULL) || (ListOfBonds.size() > OtherWalker->ListOfBonds.size())) { // pick the one with fewer number of bonds first
    132132          CandidateBond = (*Runner);
     
    137137    if ((CandidateBond != NULL)) {
    138138      CandidateBond->BondDegree++;
    139       Log() << Verbose(2) << "Increased bond degree for bond " << *CandidateBond << "." << endl;
     139      //Log() << Verbose(2) << "Increased bond degree for bond " << *CandidateBond << "." << endl;
    140140    } else {
    141       //Log() << Verbose(2) << "Could not find correct degree for atom " << *this << "." << endl;
     141      eLog() << Verbose(2) << "Could not find correct degree for atom " << *this << "." << endl;
    142142      FalseBondDegree++;
    143143    }
Note: See TracChangeset for help on using the changeset viewer.