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 1178 by gezelter, Thu May 13 21:08:05 2004 UTC vs.
Revision 1221 by chrisfen, Wed Jun 2 14:56:18 2004 UTC

# Line 32 | Line 32 | template<typename T> Integrator<T>::Integrator(SimInfo
32  
33    nAtoms = info->n_atoms;
34    integrableObjects = info->integrableObjects;
35 <
35 >
36    // check for constraints
37  
38    constrainedA = NULL;
# Line 45 | Line 45 | template<typename T> Integrator<T>::Integrator(SimInfo
45    nConstrained = 0;
46  
47    checkConstraints();
48 +
49   }
50  
51   template<typename T> Integrator<T>::~Integrator(){
# Line 182 | Line 183 | template<typename T> void Integrator<T>::integrate(voi
183    // remove center of mass drift velocity (in case we passed in a configuration
184    // that was drifting
185    tStats->removeCOMdrift();
186 +
187 +  // initialize the retraints if necessary
188 +  if (info->useSolidThermInt && !info->useLiquidThermInt) {
189 +    myFF->initRestraints();
190 +  }
191  
192    // initialize the forces before the first step
193  
# Line 271 | Line 277 | template<typename T> void Integrator<T>::integrate(voi
277   #endif // is_mpi
278    }
279  
280 +  // dump out a file containing the omega values for the final configuration
281 +  if (info->useSolidThermInt && !info->useLiquidThermInt)
282 +    myFF->dumpzAngle();
283 +  
284 +
285    delete dumpOut;
286    delete statOut;
287   }
# Line 305 | Line 316 | template<typename T> void Integrator<T>::integrateStep
316    MPIcheckPoint();
317   #endif // is_mpi
318  
308
319    // calc forces
310
320    calcForce(calcPot, calcStress);
321  
322   #ifdef IS_MPI
# Line 342 | Line 351 | template<typename T> void Integrator<T>::moveA(void){
351    double Tb[3], ji[3];
352    double vel[3], pos[3], frc[3];
353    double mass;
354 +  double omega;
355  
356    for (i = 0; i < integrableObjects.size() ; i++){
357      integrableObjects[i]->getVel(vel);
# Line 725 | Line 735 | template<typename T> void Integrator<T>::rotationPropa
735      
736      // rotate about the z-axis
737      angle = dt * ji[2] / I[2][2];
738 +    sd->addZangle(angle);
739      this->rotate( 0, 1, angle, ji, A);
740      
741      // rotate about the y-axis

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines