| 50 |
|
#include "integrators/VelocityVerletIntegrator.hpp" |
| 51 |
|
#include "integrators/DLM.hpp" |
| 52 |
|
#include "utils/StringUtils.hpp" |
| 53 |
+ |
#include "utils/ProgressBar.hpp" |
| 54 |
|
|
| 55 |
|
namespace OpenMD { |
| 56 |
|
VelocityVerletIntegrator::VelocityVerletIntegrator(SimInfo *info) : Integrator(info), rotAlgo(NULL) { |
| 95 |
|
|
| 96 |
|
dumpWriter->writeDumpAndEor(); |
| 97 |
|
|
| 98 |
+ |
progressBar = new ProgressBar(); |
| 99 |
+ |
|
| 100 |
|
//save statistics, before writeStat, we must save statistics |
| 101 |
|
thermo.saveStat(); |
| 102 |
|
saveConservedQuantity(); |
| 118 |
|
needStress = false; |
| 119 |
|
|
| 120 |
|
} |
| 121 |
< |
|
| 121 |
> |
|
| 122 |
|
void VelocityVerletIntegrator::doIntegrate() { |
| 123 |
|
|
| 124 |
|
|
| 131 |
|
integrateStep(); |
| 132 |
|
|
| 133 |
|
postStep(); |
| 134 |
< |
|
| 134 |
> |
|
| 135 |
|
} |
| 136 |
|
|
| 137 |
|
finalize(); |
| 186 |
|
} |
| 187 |
|
|
| 188 |
|
statWriter->writeStat(currentSnapshot_->statData); |
| 189 |
< |
|
| 189 |
> |
|
| 190 |
> |
progressBar->setStatus(currentSnapshot_->getTime(), runTime); |
| 191 |
> |
progressBar->update(); |
| 192 |
> |
|
| 193 |
|
needPotential = false; |
| 194 |
|
needStress = false; |
| 195 |
|
currStatus += statusTime; |