Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make ReduceData::value safer (AMReX-Codes#3421)
Although ReduceData::value is meant to be called only once, the user might call it multiple times. This will result in the wrong result for sum reduction because of how the value function is implemented. In this PR, we fix this defect by allowing the function be called multiple times.
- Loading branch information