- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/AtomAction/TranslateAction.cpp
rbe21fa rf10b0c 44 44 // TODO: use AtomSet::translate 45 45 for (std::vector<atom *>::iterator iter = selectedAtoms.begin(); iter != selectedAtoms.end(); ++iter) { 46 *(*iter) += params.x ;47 if (params.periodic )46 *(*iter) += params.x.get(); 47 if (params.periodic.get()) 48 48 (*iter)->setPosition(domain.enforceBoundaryConditions((*iter)->getPosition())); 49 49 } … … 57 57 58 58 for (std::vector<atom *>::iterator iter = state->selectedAtoms.begin(); iter != state->selectedAtoms.end(); ++iter) { 59 *(*iter) -= state->params.x ;60 if (state->params.periodic )59 *(*iter) -= state->params.x.get(); 60 if (state->params.periodic.get()) 61 61 (*iter)->setPosition(domain.enforceBoundaryConditions((*iter)->getPosition())); 62 62 } … … 70 70 71 71 for (std::vector<atom *>::iterator iter = state->selectedAtoms.begin(); iter != state->selectedAtoms.end(); ++iter) { 72 *(*iter) += state->params.x ;73 if (state->params.periodic )72 *(*iter) += state->params.x.get(); 73 if (state->params.periodic.get()) 74 74 (*iter)->setPosition(domain.enforceBoundaryConditions((*iter)->getPosition())); 75 75 }
Note:
See TracChangeset
for help on using the changeset viewer.