Commit e719b9e0 authored by Luc Maisonobe's avatar Luc Maisonobe

Fixed inconsistency between tolerances and propagtion type.

parent d02e239c
Pipeline #697 passed with stages
in 2 minutes and 20 seconds
......@@ -195,13 +195,15 @@ public class Phasing {
System.out.format(Locale.US, "please wait while orbit is adjusted...%n%n");
// numerical model for improving orbit
final double[][] tolerances = NumericalPropagator.tolerances(0.1, orbit, OrbitType.CIRCULAR);
final OrbitType orbitType = OrbitType.CIRCULAR;
final double[][] tolerances = NumericalPropagator.tolerances(0.1, orbit, orbitType);
final DormandPrince853Integrator integrator =
new DormandPrince853Integrator(1.0e-4 * orbit.getKeplerianPeriod(),
1.0e-1 * orbit.getKeplerianPeriod(),
tolerances[0], tolerances[1]);
integrator.setInitialStepSize(1.0e-2 * orbit.getKeplerianPeriod());
final NumericalPropagator propagator = new NumericalPropagator(integrator);
propagator.addForceModel(new HolmesFeatherstoneAttractionModel(FramesFactory.getGTOD(IERSConventions.IERS_2010, true),
propagator.addForceModel(new ThirdBodyAttraction(CelestialBodyFactory.getSun()));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment