Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/atom_bondedparticle.cpp

    rd74077 r952f38  
    1313#include "element.hpp"
    1414#include "lists.hpp"
    15 #include "log.hpp"
    16 #include "verbose.hpp"
     15#include "Helpers/Log.hpp"
     16#include "Helpers/Verbose.hpp"
    1717
    1818/** Constructor of class BondedParticle.
     
    152152  NoBonds = CountBonds();
    153153  //Log() << Verbose(3) << "Walker " << *this << ": " << (int)this->type->NoValenceOrbitals << " > " << NoBonds << "?" << endl;
    154   if ((int)(getType()->NoValenceOrbitals) > NoBonds) { // we have a mismatch, check all bonding partners for mismatch
     154  if ((int)(type->NoValenceOrbitals) > NoBonds) { // we have a mismatch, check all bonding partners for mismatch
    155155    for (BondList::const_iterator Runner = ListOfBonds.begin(); Runner != ListOfBonds.end(); (++Runner)) {
    156156      OtherWalker = (*Runner)->GetOtherAtom(this);
    157157      OtherNoBonds = OtherWalker->CountBonds();
    158158      //Log() << Verbose(3) << "OtherWalker " << *OtherWalker << ": " << (int)OtherWalker->type->NoValenceOrbitals << " > " << OtherNoBonds << "?" << endl;
    159       if ((int)(OtherWalker->getType()->NoValenceOrbitals) > OtherNoBonds) { // check if possible candidate
     159      if ((int)(OtherWalker->type->NoValenceOrbitals) > OtherNoBonds) { // check if possible candidate
    160160        if ((CandidateBond == NULL) || (ListOfBonds.size() > OtherWalker->ListOfBonds.size())) { // pick the one with fewer number of bonds first
    161161          CandidateBond = (*Runner);
     
    189189};
    190190
    191 std::ostream & BondedParticle::operator << (std::ostream &ost) const
    192 {
    193   ParticleInfo::operator<<(ost);
    194   ost << "," << getPosition();
    195   return ost;
    196 }
    197 
    198 std::ostream & operator << (std::ostream &ost, const BondedParticle &a)
    199 {
    200   a.ParticleInfo::operator<<(ost);
    201   ost << "," << a.getPosition();
    202   return ost;
    203 }
    204 
Note: See TracChangeset for help on using the changeset viewer.