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

Comparing branches/development/src/flucq/FluctuatingChargeLangevin.cpp (file contents):
Revision 1766 by gezelter, Thu Jul 5 17:08:25 2012 UTC vs.
Revision 1826 by gezelter, Wed Jan 9 19:41:48 2013 UTC

# Line 127 | Line 127 | namespace OpenMD {
127    }
128  
129    void FluctuatingChargeLangevin::applyConstraints() {
130 +
131 +    if (!hasFlucQ_) return;
132 +
133      SimInfo::MoleculeIterator i;
134      Molecule::FluctuatingChargeIterator  j;
135      Molecule* mol;
136      Atom* atom;
137 <    RealType cvel, cpos, cfrc, cmass, randomForce, frictionForce, velstep;
137 >    RealType cvel, cfrc, cmass, randomForce, frictionForce;
138      RealType velStep, oldFF;  // used to test for convergence
139  
140      for (mol = info_->beginMolecule(i); mol != NULL;
# Line 140 | Line 143 | namespace OpenMD {
143             atom = mol->nextFluctuatingCharge(j)) {
144  
145          cvel = atom->getFlucQVel();
143        cpos = atom->getFlucQPos();
146          cfrc = atom->getFlucQFrc();
147          cmass = atom->getChargeMass();      
148  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines