Commit c467c9a7 authored by Luc Maisonobe's avatar Luc Maisonobe
Browse files

Fixed compatibility issues.

parent 31b45a48
Pipeline #1590 passed with stages
in 39 minutes and 36 seconds
......@@ -27,6 +27,7 @@ import org.orekit.forces.ForceModel;
import org.orekit.propagation.FieldSpacecraftState;
import org.orekit.propagation.SpacecraftState;
import org.orekit.propagation.integration.AdditionalDerivativesProvider;
import org.orekit.time.AbsoluteDate;
import org.orekit.utils.ParameterDriver;
import org.orekit.utils.ParameterDriversList;
......@@ -61,7 +62,10 @@ import org.orekit.utils.ParameterDriversList;
* @author Véronique Pommier-Maurussane
* @author Luc Maisonobe
*/
public class PartialDerivativesEquations implements AdditionalDerivativesProvider {
@SuppressWarnings("deprecation")
public class PartialDerivativesEquations
implements AdditionalDerivativesProvider,
org.orekit.propagation.integration.AdditionalEquations {
/** Propagator computing state evolution. */
private final NumericalPropagator propagator;
......@@ -253,6 +257,19 @@ public class PartialDerivativesEquations implements AdditionalDerivativesProvide
propagator.getPositionAngleType());
}
/** {@inheritDoc} */
public void init(final SpacecraftState initialState, final AbsoluteDate target) {
// FIXME: remove in 12.0 when AdditionalEquations is removed
AdditionalDerivativesProvider.super.init(initialState, target);
}
/** {@inheritDoc} */
public double[] computeDerivatives(final SpacecraftState s, final double[] pDot) {
// FIXME: remove in 12.0 when AdditionalEquations is removed
System.arraycopy(derivatives(s), 0, pDot, 0, pDot.length);
return null;
}
/** {@inheritDoc} */
public double[] derivatives(final SpacecraftState s) {
......
......@@ -28,6 +28,7 @@ import org.orekit.propagation.SpacecraftState;
import org.orekit.propagation.integration.AdditionalDerivativesProvider;
import org.orekit.propagation.semianalytical.dsst.forces.DSSTForceModel;
import org.orekit.propagation.semianalytical.dsst.utilities.FieldAuxiliaryElements;
import org.orekit.time.AbsoluteDate;
import org.orekit.utils.ParameterDriver;
import org.orekit.utils.ParameterDriversList;
......@@ -51,7 +52,10 @@ import org.orekit.utils.ParameterDriversList;
* @author Bryan Cazabonne
* @since 10.0
*/
public class DSSTPartialDerivativesEquations implements AdditionalDerivativesProvider {
@SuppressWarnings("deprecation")
public class DSSTPartialDerivativesEquations
implements AdditionalDerivativesProvider,
org.orekit.propagation.integration.AdditionalEquations {
/** Retrograde factor I.
* <p>
......@@ -246,6 +250,19 @@ public class DSSTPartialDerivativesEquations implements AdditionalDerivativesPro
return new DSSTJacobiansMapper(name, selected, propagator, map, propagationType);
}
/** {@inheritDoc} */
public void init(final SpacecraftState initialState, final AbsoluteDate target) {
// FIXME: remove in 12.0 when AdditionalEquations is removed
AdditionalDerivativesProvider.super.init(initialState, target);
}
/** {@inheritDoc} */
public double[] computeDerivatives(final SpacecraftState s, final double[] pDot) {
// FIXME: remove in 12.0 when AdditionalEquations is removed
System.arraycopy(derivatives(s), 0, pDot, 0, pDot.length);
return null;
}
/** {@inheritDoc} */
public double[] derivatives(final SpacecraftState s) {
......
Supports Markdown
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