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 1180 by chrisfen, Thu May 20 20:24:07 2004 UTC vs.
Revision 1221 by chrisfen, Wed Jun 2 14:56:18 2004 UTC

# Line 46 | Line 46 | template<typename T> Integrator<T>::Integrator(SimInfo
46  
47    checkConstraints();
48  
49  for (i=0; i<nMols; i++)
50    zAngle[i] = 0.0;
49   }
50  
51   template<typename T> Integrator<T>::~Integrator(){
# Line 187 | Line 185 | template<typename T> void Integrator<T>::integrate(voi
185    tStats->removeCOMdrift();
186  
187    // initialize the retraints if necessary
188 <  if (info->useThermInt) {
188 >  if (info->useSolidThermInt && !info->useLiquidThermInt) {
189      myFF->initRestraints();
190    }
191  
# Line 257 | Line 255 | template<typename T> void Integrator<T>::integrate(voi
255  
256      if (info->getTime() >= currStatus){
257        statOut->writeStat(info->getTime());
260      statOut->writeRaw(info->getTime());
258        calcPot = 0;
259        calcStress = 0;
260        currStatus += statusTime;
# Line 281 | Line 278 | template<typename T> void Integrator<T>::integrate(voi
278    }
279  
280    // dump out a file containing the omega values for the final configuration
281 <  if (info->useThermInt)
281 >  if (info->useSolidThermInt && !info->useLiquidThermInt)
282      myFF->dumpzAngle();
283    
284  
# Line 319 | Line 316 | template<typename T> void Integrator<T>::integrateStep
316    MPIcheckPoint();
317   #endif // is_mpi
318  
322
319    // calc forces
324
320    calcForce(calcPot, calcStress);
321  
322   #ifdef IS_MPI
# Line 356 | 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 739 | 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