Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/analysis_bonds.cpp

    rfe238c r68f03d  
    9393  Vector OOBond;
    9494
    95   OHBond.CopyVector(first);
    96   OHBond.SubtractVector(central);
    97   OOBond.CopyVector(second);
    98   OOBond.SubtractVector(central);
    99   const double angle = OHBond.Angle(&OOBond);
     95  OHBond = (*first) - (*central);
     96  OOBond = (*second) - (*central);
     97  const double angle = OHBond.Angle(OOBond);
    10098  return angle;
    10199};
     
    145143          if ((Walker->type->Z  == 8) && (Runner->type->Z  == 8)) {
    146144            // check distance
    147             const double distance = Runner->x.DistanceSquared(&Walker->x);
     145            const double distance = Runner->x.DistanceSquared(Walker->x);
    148146            if ((distance > MYEPSILON) && (distance < HBRIDGEDISTANCE*HBRIDGEDISTANCE)) { // distance >0 means  different atoms
    149147              // on other atom(Runner) we check for bond to interface element and
     
    183181                    // check angle
    184182                    if (CheckHydrogenBridgeBondAngle(Walker, OtherAtom, Runner)) {
    185                       DoLog(1) && (Log() << Verbose(1) << Walker->Name << ", " << OtherAtom->Name << " and " << Runner->Name << " has a hydrogen bridge bond with distance " << sqrt(distance) << " and angle " << CalculateAngle(&OtherAtom->x, &Walker->x, &Runner->x)*(180./M_PI) << "." << endl);
     183                      DoLog(1) && (Log() << Verbose(1) << Walker->getName() << ", " << OtherAtom->getName() << " and " << Runner->getName() << " has a hydrogen bridge bond with distance " << sqrt(distance) << " and angle " << CalculateAngle(&OtherAtom->x, &Walker->x, &Runner->x)*(180./M_PI) << "." << endl);
    186184                      count++;
    187185                      break;
Note: See TracChangeset for help on using the changeset viewer.