Remove additionalStateProvider

I have an AdditionalStateProvider MyProvider with name “provName”. I’m able to add it to the Propagator:

AdditionalStateProvider myProvider = MyProvider(“provName”);

However is there an option to remove additional state from the propagator? Or overwrite AdditionalStateProvider with new AdditionalStateProvider with same name?

No, its unfortunately not possible. There are no remove method and if you reuse the same name the library will complain that it is already in use. You will have to either rebuild a new propagator or set up a wrapper with that name that allows to switch between several implementations when you want to change them.

1 Like