-
Notifications
You must be signed in to change notification settings - Fork 4
Description
In #43, we modified the timestepper interface such that intermediary stages/caches are stored in the timestepper struct itself. However, this somewhat complicates the construction/specification of the timestepper by the user since it now depends on the state, which is not available pre-initialize.
Copy of comment from @maximilian-gelbrecht in #43:
But you are raising a good point nonetheless. We actually need kwargs for the timestepper. At the moment it would be okay to just forward all additional kwargs from initialize directly to the timestepper. But would we want to keep that in the long run? I think it's a bit inelegant. We already depend on Flatten anyway, so maybe it's actually best to just take in an instance of the timestepper and then reconstruct the timestepper with the correct stage/cache.
We should think more about how to do this long-term. I am still in favor of separating the cache from the timestepper, I think, but we can discuss more here.