Moved initialization of dTime to start of VerifyOptions.
@@ -1108,6 +1108,9 @@ void VerifyOptions(BODY *body, CONTROL *control, FILES *files, MODULE *module,
int iBody, iModule;
+ control->Evolve.dTime = 0;
+ control->Evolve.nSteps = 0;
+
VerifyAge(body, control, options);
VerifyNames(body, control, options);
@@ -1185,7 +1188,5 @@ void VerifyOptions(BODY *body, CONTROL *control, FILES *files, MODULE *module,
CalculateDerivatives(body, system, update, *fnUpdate,
control->Evolve.iNumBodies);
- control->Evolve.dTime = 0;
- control->Evolve.nSteps = 0;
control->Io.dNextOutput = control->Evolve.dTime + control->Io.dOutputTime;
}
