Skip to content

Avoid spamming options on getYBoundary() - #3530

Open
dschwoerer wants to merge 3 commits into
nextfrom
getyboundary-default
Open

dschwoerer wants to merge 3 commits into
nextfrom
getyboundary-default

Conversation

@dschwoerer

Copy link
Copy Markdown
Contributor

This is called by Div_par_K_Grad_par_mod without caching.

@totork can you verify this fixes your issue seen in #3522 ?

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

Comment thread src/mesh/coordinates.cxx Outdated
Comment thread src/mesh/coordinates.cxx Outdated
Comment thread src/mesh/coordinates.cxx Outdated
@dschwoerer
dschwoerer force-pushed the getyboundary-default branch from 7adb40c to abcae69 Compare October 29, 2026 10:10

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

Comment thread src/mesh/coordinates.cxx
if (is_default) {
// populate cache first to avoid race condition
getYBoundary(lower_y, upper_y);
default_yboundary = boundary_bools_to_index(lower_y, upper_y);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: narrowing conversion from 'std::size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions]

    default_yboundary = boundary_bools_to_index(lower_y, upper_y);
                        ^

@totork

totork commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Seems to be fixed

@dschwoerer
dschwoerer marked this pull request as ready for review October 29, 2026 11:59
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.

2 participants