def METHOD_NAME(self, hard=False):
    """Reset internal state of the ODE solver."""
    if self._is_set:
        state = self.get_state()
    if hard:
        self._prepare()
    if self._is_set:
        self.set_state(*state)