Skip to content

SUNDIALS alloc-failure-output-pointer#5094

Merged
WeiqunZhang merged 1 commit intoAMReX-Codes:developmentfrom
ajnonaka:sundials_sunmemory_null
Feb 26, 2026
Merged

SUNDIALS alloc-failure-output-pointer#5094
WeiqunZhang merged 1 commit intoAMReX-Codes:developmentfrom
ajnonaka:sundials_sunmemory_null

Conversation

@ajnonaka
Copy link
Copy Markdown
Contributor

Fix for #5041

In Alloc, on arena failure the code assigns memptr = nullptr instead of *memptr = nullptr.

Summary

Additional background

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

In Alloc, on arena failure the code assigns memptr = nullptr instead of *memptr = nullptr.
@WeiqunZhang WeiqunZhang merged commit 2614655 into AMReX-Codes:development Feb 26, 2026
74 checks passed
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.

SUNMemory allocation failure does not null out the caller output pointer

2 participants