ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/primitives/DirectionalAtom.cpp
(Generate patch)

Comparing branches/development/src/primitives/DirectionalAtom.cpp (file contents):
Revision 1837 by gezelter, Thu Sep 13 14:10:11 2012 UTC vs.
Revision 1838 by gezelter, Tue Jan 22 16:20:11 2013 UTC

# Line 106 | Line 106 | namespace OpenMD {
106    
107    void DirectionalAtom::setA(const RotMat3x3d& a) {
108      ((snapshotMan_->getCurrentSnapshot())->*storage_).aMat[localIndex_] = a;
109 <
109 >
110      if (atomType_->isMultipole()) {
111        RotMat3x3d atrans = a.transpose();
112 <      
112 >
113        if (atomType_->isDipole()) {
114          ((snapshotMan_->getCurrentSnapshot())->*storage_).dipole[localIndex_] = atrans * dipole_;
115        }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines