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

Comparing branches/development/src/flucq/FluctuatingChargeObjectiveFunction.cpp (file contents):
Revision 1755 by gezelter, Tue Jun 5 18:01:50 2012 UTC vs.
Revision 1756 by gezelter, Mon Jun 18 18:23:20 2012 UTC

# Line 93 | Line 93 | namespace OpenMD{
93        
94        for (atom = mol->beginFluctuatingCharge(j); atom != NULL;
95             atom = mol->nextFluctuatingCharge(j)) {
96 <        
96 >      
97          atom->setFlucQPos(x[index++]);
98        }
99      }    
# Line 112 | Line 112 | namespace OpenMD{
112  
113        for (atom = mol->beginFluctuatingCharge(j); atom != NULL;
114             atom = mol->nextFluctuatingCharge(j)) {
115 <        
115 >
116          grad[index++] = -atom->getFlucQFrc();
117 +
118        }
119      }
120    }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines