Changeset aa91e63


Ignore:
Timestamp:
Sep 10, 2016, 4:14:02 PM (8 years ago)
Author:
Frederik Heber <heber@…>
Branches:
SaturateAtoms_singleDegree
Parents:
9ec12c
git-author:
Frederik Heber <heber@…> (05/11/16 06:37:28)
git-committer:
Frederik Heber <heber@…> (09/10/16 16:14:02)
Message:

Rescaling occupied positions by typical_distance.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/Actions/AtomAction/SaturateAction.cpp

    r9ec12c raa91e63  
    9797        const Vector position =
    9898            (*bonditer)->GetOtherAtom(_atom)->getPosition().getVectorToPoint(_atom->getPosition());
    99         current_positions.push_back((1./position.Norm())*position);
     99        current_positions.push_back((typical_distance/position.Norm())*position);
    100100        number_vacant_positions -= (*bonditer)->getDegree() - 1;
    101101      }
Note: See TracChangeset for help on using the changeset viewer.