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

Fix Issue 2206 Pt2 #2212

Merged
merged 5 commits into from
Mar 22, 2025
Merged

Conversation

AMLattanzi
Copy link
Collaborator

This PR addresses the vector out of bounds access raised in Issue 2206. The root cause of the issue is that ERF_Tagging operates per level and thus the vector mf_cc_vels has 1 element for the current level. However, the called function FillBdyCCVels expects that the vector of MFs to be of size finest_level. Therefore, we create an optional argument that allows us to modify the bounds of the outer for loop; this allows FillBdyCCVels to be called per level or for all levels.

@AMLattanzi AMLattanzi merged commit 3bc44fb into erf-model:development Mar 22, 2025
19 checks passed
@AMLattanzi AMLattanzi deleted the CCvel_Lev_Error branch March 22, 2025 00: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.

1 participant