Changeset e7ea64 for molecuilder/src/molecule.cpp
- Timestamp:
- Apr 15, 2010, 10:54:26 AM (16 years ago)
- Children:
- 32842d8
- Parents:
- 1f591b
- File:
-
- 1 edited
-
molecuilder/src/molecule.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/molecule.cpp
r1f591b re7ea64 239 239 matrix = ReturnFullMatrixforSymmetric(cell_size); 240 240 Orthovector1.MatrixMultiplication(matrix); 241 InBondvector .SubtractVector(Orthovector1); // subtract just the additional translation241 InBondvector -= Orthovector1; // subtract just the additional translation 242 242 Free(&matrix); 243 243 bondlength = InBondvector.Norm(); … … 272 272 FirstOtherAtom->father = NULL; // if we replace hydrogen, we mark it as our father, otherwise we are just an added hydrogen with no father 273 273 } 274 InBondvector .Scale(&BondRescale); // rescale the distance vector to Hydrogen bond length274 InBondvector *= BondRescale; // rescale the distance vector to Hydrogen bond length 275 275 FirstOtherAtom->x = TopOrigin->x; // set coordination to origin ... 276 276 FirstOtherAtom->x = InBondvector; // ... and add distance vector to replacement atom … … 356 356 SecondOtherAtom->x[i] = InBondvector[i] * cos(bondangle) + Orthovector1[i] * (-sin(bondangle)); 357 357 } 358 FirstOtherAtom->x .Scale(&BondRescale); // rescale by correct BondDistance359 SecondOtherAtom->x .Scale(&BondRescale);358 FirstOtherAtom->x *= BondRescale; // rescale by correct BondDistance 359 SecondOtherAtom->x *= BondRescale; 360 360 //Log() << Verbose(3) << "ReScaleCheck: " << FirstOtherAtom->x.Norm() << " and " << SecondOtherAtom->x.Norm() << "." << endl; 361 361 for(int i=NDIM;i--;) { // and make relative to origin atom
Note:
See TracChangeset
for help on using the changeset viewer.
