Add error, if substeps="true" for unsupported acceleration scheme.#1721
Conversation
uekerman
left a comment
There was a problem hiding this comment.
Do we now plan to make substeps default to true or false with v3.0?
This is probably similar to what we are currently discussing in #1690. IIRC the current default is Going for some kind of Another idea, not sure if it is a good one: we could also add an additional check and only trigger the error above, if we detect that the user actually performed substeps. I guess this would bypass the error for most users, but it also makes the implementation more complicated, harder to test and the behavior does not solely depend on the configuration, but also on the runtime. |
I agree and share the concerns. In general, sounds too complicated to me.
Agree, let's not do this here. I see the situation as follows:
So, I would vote for |
|
To the extent I understand the situation:
As far as I see it, we should document the option already with its limitations and plans, and later advertise the "now time interpolation supports X, set Y to use it" and use it in the tutorials. It will be a new feature. I would vote to stick to the policy of not changing the default in a minor release. We can guide users to explicitly switch something on with different ways (documentation, tutorials, warnings). Let's set the option to What would be the downside of asking the user to explicitly use the new features when available? |
|
@MakisH mostly agree with the following two comments:
I would say a typical FSI scenario uses no subcycling (see our tutorials). Generally subcycling may lead to numerical problems, if you don't do it right. I you know about users that (consciously) use subcycling, please let me know, because these might be great application cases for my thesis 😏
Ideally we would like to exchange substeps as the default option as soon as everything is working, because it would finally result in the behavior of subcycling that a user would also expect: I perform substeps and the data also arrives on the other side. Until then (half-baked situation) defaulting to I'm not sure how far we are stretching the basic principles of semantic versioning, but if possible, I would also like to relax a bit and go change the default from |
hmm... true. None of our tutorials (OpenFOAM cases) currently uses subcycling. We do need a tutorial/test case for it! |
substeps="true" for unsupported acceleration scheme.
|
Depending on the order of merging: If we merge #1732 first, I can also reduce the diff of this PR here quite a bit and remove |
Co-authored-by: Benjamin Uekermann <[email protected]>
…nberg/precice into 1710-require-substeps-false
* Checkout relevant implementation from #1696 that is independent of #1721. --------- Co-authored-by: Niklas Kotarsky <[email protected]> Co-authored-by: Benjamin Uekermann <[email protected]>
|
@uekerman can you take a look again? Changes are trivial. I think it generally makes sense introducing this error message. It does not matter what the default value of #1732 is related to this one, but still has some minor problems and needs more time. |
|
The error message makes sense to me (user perspective), thanks! |
uekerman
left a comment
There was a problem hiding this comment.
Let's keep the substeps="false" in most tests despite being the default. Doesn't hurt and make things explicit
Well, the nice thing about using the default in the config is that it will also automatically change, if we change the default. This also makes sure that the tests are aligned what most of our users are likely to do. We can remove the |
Main changes of this PR
Raise error, if
substeps="true"for unsupported acceleration scheme. Closing #1710.Motivation and additional information
See #1710.
Author's checklist
pre-commithook to prevent dirty commits and usedpre-commit run --allto format old commits.I added a changelog file with(Not needed, feature was not released yet)make changelogif there are user-observable changes since the last release.For breaking changes: I documented the changes in the appropriate porting guide.Reviewers' checklist