diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc index 4a21d60cde28b32d6b5ddf7b837e262117083296..02ba007e4a94a0dc35f0e9fa1141655e0bf4b0f7 100644 --- a/src/one-body-sample.cc +++ b/src/one-body-sample.cc @@ -331,11 +331,11 @@ int main(int argc, char *argv[]) { Vector v = v_initial; ScalarVector alpha(fineVertexCount); - auto const timesteps = parset.get<size_t>("timeSteps.number"), + auto const timeSteps = parset.get<size_t>("timeSteps.number"), maximumStateFPI = parset.get<size_t>("v.fpi.maximumIterations"), maximumIterations = parset.get<size_t>("v.solver.maximumIterations"); - auto const tau = parset.get<double>("problem.finalTime") / timesteps, + auto const tau = parset.get<double>("problem.finalTime") / timeSteps, tolerance = parset.get<double>("v.solver.tolerance"), fixedPointTolerance = parset.get<double>("v.fpi.tolerance"), relaxation = parset.get<double>("v.fpi.relaxation"), @@ -344,14 +344,14 @@ int main(int argc, char *argv[]) { auto const printProgress = parset.get<bool>("io.printProgress"); auto const verbosity = parset.get<Solver::VerbosityMode>("v.solver.verbosity"); - for (size_t run = 1; run <= timesteps; ++run) { + for (size_t run = 1; run <= timeSteps; ++run) { if (printProgress) std::cout << boost::format("%7d ") % run << " " << std::flush; stateUpdater->nextTimeStep(); timeSteppingScheme->nextTimeStep(); - auto const relativeTime = double(run) / double(timesteps); + auto const relativeTime = double(run) / double(timeSteps); computeExternalForces(relativeTime, ell); Matrix velocityMatrix;