ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/parallel/ForceMatrixDecomposition.cpp
(Generate patch)

Comparing branches/development/src/parallel/ForceMatrixDecomposition.cpp (file contents):
Revision 1665 by gezelter, Tue Nov 22 20:38:56 2011 UTC vs.
Revision 1668 by gezelter, Fri Jan 6 19:03:05 2012 UTC

# Line 1001 | Line 1001 | namespace OpenMD {
1001    
1002    void ForceMatrixDecomposition::unpackInteractionData(InteractionData &idat, int atom1, int atom2) {    
1003   #ifdef IS_MPI
1004 <    pot_row[atom1] += 0.5 *  *(idat.pot);
1005 <    pot_col[atom2] += 0.5 *  *(idat.pot);
1004 >    pot_row[atom1] += RealType(0.5) *  *(idat.pot);
1005 >    pot_col[atom2] += RealType(0.5) *  *(idat.pot);
1006  
1007      atomRowData.force[atom1] += *(idat.f1);
1008      atomColData.force[atom2] -= *(idat.f1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines