Skip to content

Fix out-of-bounds error in IncfloVelFill when doing u_mac fillpatch#146

Merged
asalmgren merged 6 commits intoAMReX-Fluids:developmentfrom
cgilet:fix_IncfloVelFill
Jun 3, 2025
Merged

Fix out-of-bounds error in IncfloVelFill when doing u_mac fillpatch#146
asalmgren merged 6 commits intoAMReX-Fluids:developmentfrom
cgilet:fix_IncfloVelFill

Conversation

@cgilet
Copy link
Copy Markdown
Collaborator

@cgilet cgilet commented May 29, 2025

No description provided.

@cgilet
Copy link
Copy Markdown
Collaborator Author

cgilet commented May 29, 2025

@asalmgren I'm not sure if this fix could potentially break other things. I don't think it's ever the case for incflo that in IncfloVelFill orig_comp is needed to get the starting location of the velocity BCs inside an array that holds more than just velocity BCs. For u_mac, when fillpatch has to be called on each component individually, orig_comp is needed/used to get the correct component from bcv_vel (m_bc_velocity). But then the changes for the direction dependent BC seem to treat orig_comp as the starting point in the array for all the velocity BCs, so maybe it needs to be used that way somewhere?

@cgilet cgilet marked this pull request as draft May 31, 2025 19:32
@cgilet cgilet force-pushed the fix_IncfloVelFill branch from 0681915 to af0f448 Compare June 2, 2025 11:04
@cgilet cgilet marked this pull request as ready for review June 2, 2025 20:22
component in the closest valid cell instead.

Must use bigEnd/smallEnd because if ng>1, i+1 could still be a
ghost cell.
@cgilet cgilet requested a review from asalmgren June 3, 2025 06:13
@asalmgren asalmgren merged commit 86badef into AMReX-Fluids:development Jun 3, 2025
12 checks passed
@asalmgren asalmgren deleted the fix_IncfloVelFill branch June 3, 2025 17:08
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