ensure dt is small enough for integration