Changes in src/analysis_bonds.cpp [68f03d:fe238c]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/analysis_bonds.cpp
r68f03d rfe238c 93 93 Vector OOBond; 94 94 95 OHBond = (*first) - (*central); 96 OOBond = (*second) - (*central); 97 const double angle = OHBond.Angle(OOBond); 95 OHBond.CopyVector(first); 96 OHBond.SubtractVector(central); 97 OOBond.CopyVector(second); 98 OOBond.SubtractVector(central); 99 const double angle = OHBond.Angle(&OOBond); 98 100 return angle; 99 101 }; … … 143 145 if ((Walker->type->Z == 8) && (Runner->type->Z == 8)) { 144 146 // check distance 145 const double distance = Runner->x.DistanceSquared( Walker->x);147 const double distance = Runner->x.DistanceSquared(&Walker->x); 146 148 if ((distance > MYEPSILON) && (distance < HBRIDGEDISTANCE*HBRIDGEDISTANCE)) { // distance >0 means different atoms 147 149 // on other atom(Runner) we check for bond to interface element and … … 181 183 // check angle 182 184 if (CheckHydrogenBridgeBondAngle(Walker, OtherAtom, Runner)) { 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);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); 184 186 count++; 185 187 break;
Note:
See TracChangeset
for help on using the changeset viewer.