Changeset e7ea64 for molecuilder/src/molecule_geometry.cpp
- Timestamp:
- Apr 15, 2010, 10:54:26 AM (16 years ago)
- Children:
- 32842d8
- Parents:
- 1f591b
- File:
-
- 1 edited
-
molecuilder/src/molecule_geometry.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/molecule_geometry.cpp
r1f591b re7ea64 191 191 /** Scales all atoms by \a *factor. 192 192 * \param *factor pointer to scaling factor 193 * 194 * TODO: Is this realy what is meant, i.e. 195 * x=(x[0]*factor[0],x[1]*factor[1],x[2]*factor[2]) (current impl) 196 * or rather 197 * x=(**factor) * x (as suggested by comment) 193 198 */ 194 199 void molecule::Scale(const double ** const factor) … … 199 204 ptr = ptr->next; 200 205 for (int j=0;j<MDSteps;j++) 201 ptr->Trajectory.R.at(j).Scale (factor);202 ptr->x.Scale (factor);206 ptr->Trajectory.R.at(j).ScaleAll(*factor); 207 ptr->x.ScaleAll(*factor); 203 208 } 204 209 }; … … 214 219 ptr = ptr->next; 215 220 for (int j=0;j<MDSteps;j++) 216 ptr->Trajectory.R.at(j) .Translate(*trans);217 ptr->x .Translate(*trans);221 ptr->Trajectory.R.at(j) += (*trans); 222 ptr->x += (*trans); 218 223 } 219 224 };
Note:
See TracChangeset
for help on using the changeset viewer.
