ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/Integrator.cpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/Integrator.cpp (file contents):
Revision 778 by mmeineke, Fri Sep 19 20:00:27 2003 UTC vs.
Revision 782 by mmeineke, Tue Sep 23 20:34:31 2003 UTC

# Line 25 | Line 25 | template<typename T> Integrator<T>::Integrator(SimInfo
25    if (info->the_integrator != NULL){
26      delete info->the_integrator;
27    }
28 <  info->the_integrator = this;
29 <
28 >  
29    nAtoms = info->n_atoms;
30  
31    // check for constraints
# Line 177 | Line 176 | template<typename T> void Integrator<T>::integrate(voi
176    // initialize the forces before the first step
177  
178    calcForce(1, 1);
179 +
180 +  if (nConstrained){
181 +    preMove();
182 +    constrainA();
183 +    calcForce(1, 1);    
184 +    constrainB();
185 +  }
186    
187    if (info->setTemp){
188      thermalize();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines