Skip to content

Conversation

@ax3l
Copy link
Member

@ax3l ax3l commented Aug 18, 2025

Summary

Sometimes one needs the underlying (u)int value of an enum class, e.g., when building bitmasks. This adds a helper function to AMREX_ENUM.

Additional background

BLAST-ImpactX/impactx#1104

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

Sometimes one needs the underlying (u)int type of an enum,
e.g., when building bitmasks. This adds a helper function to
`AMREX_ENUM`.
@ax3l ax3l force-pushed the topic-enum-underlying branch from 929e83f to dbc02ed Compare August 18, 2025 19:51
@ax3l ax3l changed the title AMReX Enum: Underlying Type AMReX Enum: Underlying Value Aug 18, 2025
@ax3l
Copy link
Member Author

ax3l commented Sep 11, 2025

@WeiqunZhang feel free to update. I am mostly family sick and rest in proposals this week -.-

@WeiqunZhang WeiqunZhang merged commit 02f70bd into AMReX-Codes:development Sep 11, 2025
73 of 75 checks passed
@ax3l ax3l deleted the topic-enum-underlying branch September 11, 2025 22:50
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