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 1177 by gezelter, Fri May 7 21:35:05 2004 UTC vs.
Revision 1178 by gezelter, Thu May 13 21:08:05 2004 UTC

# Line 160 | Line 160 | template<typename T> void Integrator<T>::integrate(voi
160    double thermalTime = info->thermalTime;
161    double resetTime = info->resetTime;
162  
163 <
163 >  double difference;
164    double currSample;
165    double currThermal;
166    double currStatus;
# Line 215 | Line 215 | template<typename T> void Integrator<T>::integrate(voi
215   #endif // is_mpi
216  
217    while (info->getTime() < runTime && !stopIntegrator()){
218 <    if ((info->getTime() + dt) >= currStatus){
218 >    difference = info->getTime() + dt - currStatus;
219 >    if (difference > 0 || fabs(difference) < 1e-4 ){
220        calcPot = 1;
221        calcStress = 1;
222      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines