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