-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up ReducedBeamCharacteristics with TypeMultiplier (#561)
* Clean up RedBeamChar with TypeMultiplier Make `ReducedBeamCharacteristics` more readable. * Change length variable to constexpr size_t The variables `num_red_ops_*` are used for the TypeMultiplier and also for the length of the output vectors for the reduced diagnostics. This commit changes their type from `const int` to `constexpr size_t` because this is more appropriate for a vector length, and with constexpr we indicate that the value is constant and can be evaluated at compile time already. * Add constexpr std::size_t indices for amrex::get We had MSVC (only on Windows) compile errors and this commit tries to fix them.
- Loading branch information
Showing
1 changed file
with
75 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters