Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buggy "value=-1" input for First-participant timestep configuration #2011

Open
steffenger opened this issue Apr 22, 2024 · 4 comments
Open
Labels
bug preCICE does not behave the way we want and we should look into it (and fix it if possible) configuration Related to the preCICE configuration usability This issue will make preCICE easier for non-expert users

Comments

@steffenger
Copy link

If you choose the "first-participant" method for the time-window-size, you are instructed to enter value=-1 ín your configuration file.

https://github.com/precice/precice/blob/develop/src/cplscheme/config/CouplingSchemeConfiguration.cpp#L224-L229

According to @BenjaminRodenberg this is more for internal handling and therefore a "buggy" input for the user.

@steffenger steffenger added the bug preCICE does not behave the way we want and we should look into it (and fix it if possible) label Apr 22, 2024
@uekerman
Copy link
Member

Which config runs into this error? We should probably forbid the config in the first place already.

@steffenger
Copy link
Author

You run into this error if you dont remove the value tag after choosing "first participant".

<time-window-size value="1" method="first-participant"/>
15:29:48 [cplscheme::CouplingSchemeConfiguration]:215 in xmlTagCallback: ERROR: Time window size value has to be equal to -1 (default), if method="first-participant" is used. Please check the <time-window-size value="1" method="first-participant" /> tag in the <coupling-scheme:...> of your precice-config.xml

@uekerman
Copy link
Member

Yes, we could do better here. Thanks for reporting!

@BenjaminRodenberg BenjaminRodenberg added the usability This issue will make preCICE easier for non-expert users label Apr 22, 2024
@BenjaminRodenberg
Copy link
Member

BenjaminRodenberg commented Apr 22, 2024

To contribute some internal information here: We use -1 as a sentinel value for "no time window size defined". Therefore, providing value="-1" with method="first-participant" is technically valid, but very confusing from the usability side, because this is actually an implementation detail that we expose to the user. I think raising an error, if any value is provided while method="first-participant" is set would be the right way to go here.

@fsimonis fsimonis added the configuration Related to the preCICE configuration label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug preCICE does not behave the way we want and we should look into it (and fix it if possible) configuration Related to the preCICE configuration usability This issue will make preCICE easier for non-expert users
Projects
None yet
Development

No branches or pull requests

4 participants