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: Resize Component on Add #3861

Merged
merged 1 commit into from
Mar 29, 2024
Merged

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Mar 29, 2024

Summary

Some object called "dummy mf" needs to be resized to avoid segfaults.

Additional background

Follow-up to #3615

Checklist

The proposed changes:

  • fix a bug or incorrect behavior in AMReX
  • add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • include documentation in the code and/or rst files, if appropriate

Some object called "dummy mf" needs to be resized to avoid
segfaults.
@ax3l ax3l added the bug label Mar 29, 2024
@ax3l ax3l requested review from atmyers and WeiqunZhang March 29, 2024 20:16
@ax3l ax3l enabled auto-merge (squash) March 29, 2024 20:20
@ax3l ax3l merged commit 47347f7 into AMReX-Codes:development Mar 29, 2024
68 of 69 checks passed
@ax3l ax3l deleted the fix-resize-component branch March 29, 2024 23:19
@@ -1244,6 +1244,7 @@ public:
m_num_runtime_real++;
h_redistribute_real_comp.push_back(communicate);
SetParticleSize();
this->resizeData();
Copy link
Member Author

Choose a reason for hiding this comment

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

@atmyers potentially, you could also move the logic in AddRealComp that reads //resize runtime SoA into resizeData.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants