diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc index 4d28c36daa823e3ab4ec810e1ade4db511f47e09..d97fcce462a74bc9d56e27feecb16b5321ad5890 100644 --- a/src/one-body-sample.cc +++ b/src/one-body-sample.cc @@ -490,9 +490,6 @@ int main(int argc, char *argv[]) { if (printProgress) (std::cout << boost::format("%7d ") % run << " ").flush(); - VectorType u; - double lastCorrection; - stateUpdater->nextTimeStep(); timeSteppingScheme->nextTimeStep(); @@ -532,7 +529,9 @@ int main(int argc, char *argv[]) { // Since the velocity explodes in the quasistatic case, use the // displacement as a convergence criterion // Q: is this reasonable? + VectorType u; VectorType u_saved; + double lastCorrection; for (size_t state_fpi = 1; state_fpi <= state_fpi_max; ++state_fpi) { stateUpdater->solve(v); {