Call of init method in DSST force model

Hi!

Recently, a collegue had an issue with the osc to mean conversions using DSST. The issue is that a force model needs the DSSTForceModel#init method to be initialized. The init method is correctly called at propagation start (its main purpose), but not inside the osc-to-mean conversion methods (i.e.; computeOsculatingStateand computeMeanState). So, my question is: is it the role of the application to call the init method before calling conversion methods ? Or is the role of Orekit to call the init method inside the conversion methods.

Thank you and best regards

Bryan

I would say we can decide here. This case was not foreseen, and there is not obvious choice criterion, so look at what is best for your application and select this choice (i.e. either add the call to init in Orekit conversion methods, or add some javadoc to say users should call it by themselves.

I’m sorry for not being helpful here.

Thanks @luc for your helpful answer. I think that just updating the javadoc to warn users that init method is not called is sufficient.

Bryan