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

Check for small cell before checking for multi-cut #3088

Merged
merged 2 commits into from
Jan 5, 2023

Conversation

WeiqunZhang
Copy link
Member

This is a follow-up on #3087. There are cases with 5 faces covered and one face still open. These cells should be marked small cells before the multi-cut check.

This is a follow-up on AMReX-Codes#3087.  There are cases with 5 faces covered and one
face still open.  These cells should be marked small cells before the
multi-cut check.
Comment on lines +48 to +56
if (((axm == 0.0_rt && axp == 0.0_rt) &&
(aym == 0.0_rt && ayp == 0.0_rt) &&
(azm == 0.0_rt || azp == 0.0_rt)) ||
((axm == 0.0_rt && axp == 0.0_rt) &&
(aym == 0.0_rt || ayp == 0.0_rt) &&
(azm == 0.0_rt && azp == 0.0_rt)) ||
((axm == 0.0_rt || axp == 0.0_rt) &&
(aym == 0.0_rt && ayp == 0.0_rt) &&
(azm == 0.0_rt && azp == 0.0_rt))) {

Check notice

Code scanning / CodeQL

Complex condition

Complex condition: too many logical operations in this expression.
@WeiqunZhang WeiqunZhang merged commit 0c3fff4 into AMReX-Codes:development Jan 5, 2023
@WeiqunZhang WeiqunZhang deleted the fix_eb_check branch January 5, 2023 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants