-
Notifications
You must be signed in to change notification settings - Fork 1k
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
check block-restriction in duplicateVariableCheck #28570
check block-restriction in duplicateVariableCheck #28570
Conversation
Dear reviewers, This PR aims at improving the error message for the variable type, but shows in an error for the variable type e.g. Kind regards, |
Dear @GiudGiud, you mentioned in #28560 (comment) that other aspects of the variables also should be checked. Therefore, I introduced the parameter Jörg |
So... The new check on the block-restriction makes several tests fail. I see three ways on how to deal with this:
I suggest option 2. What do you think? |
Job Documentation on dcd356f wanted to post the following: View the site here This comment will be updated on new commits. |
Oh no! Sorry for pestering all of you! I had to change some tests due to the now stricter testing on the block restriction. Most of the tests had to be changed due to the handling of the block-restriction in [Physics/SolidMechanics/QuasiStatic] (e.g. also see #28308). |
Dear @GiudGiud, if I interpred the logs correctly, the tests for Moose are all green now. There are failing tests for Mastodon and Raccoon. I've a fix for |
I ll take a look. We're working on releasing fluid properties right now so there's quite a few apps in the red in the meantime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works for me.
It catches the lower D block restriction issues when the proper block restriction has been passed to one of the variables outside the action, so it helps there too
Will need a patch for
|
Job Coverage on dcd356f wanted to post the following: Framework coverage
Modules coverageSolid mechanics
Full coverage reportsReports
Warnings
This comment will be updated on new commits. |
Ok looking at bison, it s breaking on adding variables with a SMALLER block restriction than the existing one (for example ANY_BLOCK_ID). We should actually just allow that. It does not hurt to be trying to add variables that are already defined on a larger set of blocks. |
When I initially created the code, I also had this thought: If we allow this, the order of commands in a Moose input file has an influence on whether this error occurs or not. Should we still allow this? |
The only case where this happens is when you have two actions that act on the same task, adding variables. I can see this help combining actions |
With the widening on the check regarding block-restriction "Bison" seems now to be green alogg all "internal app tests". There are still failing "public app tests" for:
and the "controlled app tests" are also red. |
Ferret and racoon are unrelated EDIT: Do you mind creting the patch to mastodon and tagging me? If it s not complete let me know and I can look at the remaining test failures |
Subchannel patch is merged |
Mastodon patch is merged though might not show on this testing round |
Thanks for the contribution of this extra check! |
Currently, in FEProblemBase::duplicateVariableCheck Moose checks that order and family is matching. In the same function, Moose does no checks on the block-restriction. However, it would be very good if Moose would also check the block restriction.
Furthermore, the error message on family and order should be more verbose and give more information.
closes #28568