Evolution of Orekit and deprecation of propagation.numerical.NumericalPropagator.tolerances

I am updating Rugged to Orekit 13.0.3 and I have a warning about deprecation of:
tolerances(double,org.orekit.orbits.Orbit,org.orekit.orbits.OrbitType) in org.orekit.propagation.numerical.NumericalPropagator has been deprecated

I found this example of evolution in Orekit:

 OrbitType type = OrbitType.CARTESIAN;
        double[][] tol = NumericalPropagator.tolerances(1e-3, orbit.toOrbit(), type);

to

OrbitType type = OrbitType.CARTESIAN;
      double[][] tol = ToleranceProvider.of(CartesianToleranceProvider.of(0.001)).getTolerances(orbit.toOrbit(), type);

But in my case the orbit type is OrbitType.CIRCULAR : can I apply the same evolution ?

Hi,

You could do that yes.

Another option is to call getDefaultProvider in ToleranceProvider, which is numerically identical to the deprecated tolerances method.

Cheers

2 Likes