Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/AtomAction/TranslateAction.cpp

    rbe21fa rf10b0c  
    4444  // TODO: use AtomSet::translate
    4545  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())
    4848      (*iter)->setPosition(domain.enforceBoundaryConditions((*iter)->getPosition()));
    4949  }
     
    5757
    5858  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())
    6161      (*iter)->setPosition(domain.enforceBoundaryConditions((*iter)->getPosition()));
    6262  }
     
    7070
    7171  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())
    7474      (*iter)->setPosition(domain.enforceBoundaryConditions((*iter)->getPosition()));
    7575  }
Note: See TracChangeset for help on using the changeset viewer.