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 745 by tim, Wed Aug 27 19:23:29 2003 UTC vs.
Revision 746 by mmeineke, Thu Sep 4 21:48:35 2003 UTC

# Line 153 | Line 153 | template<typename T> void Integrator<T>::integrate(voi
153    double sampleTime = info->sampleTime;
154    double statusTime = info->statusTime;
155    double thermalTime = info->thermalTime;
156 +  double resetTime = info->resetTime;
157  
158 +
159    double currSample;
160    double currThermal;
161    double currStatus;
162 <
162 >  double currReset;
163 >  
164    int calcPot, calcStress;
165    int isError;
166  
# Line 179 | Line 182 | template<typename T> void Integrator<T>::integrate(voi
182      thermalize();
183    }
184  
182  calcPot = 0;
183  calcStress = 0;
184  currSample = sampleTime;
185  currThermal = thermalTime;
186  currStatus = statusTime;
187  
185    calcPot     = 0;
186    calcStress  = 0;
187    currSample  = sampleTime + info->getTime();
188    currThermal = thermalTime+ info->getTime();
189    currStatus  = statusTime + info->getTime();
190 +  currReset   = resetTime  + info->getTime();
191  
192    dumpOut->writeDump(info->getTime());
193    statOut->writeStat(info->getTime());
# Line 230 | Line 228 | template<typename T> void Integrator<T>::integrate(voi
228        currStatus += statusTime;
229      }
230  
231 +    if (info->resetIntegrator){
232 +      if (info->getTime() >= currReset){
233 +        this->resetIntegrator();
234 +        currReset += resetTime;
235 +      }
236 +    }
237 +
238   #ifdef IS_MPI
239      strcpy(checkPointMsg, "successfully took a time step.");
240      MPIcheckPoint();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines