Skip to content

Commit

Permalink
Particle Copy Plan: Default Vals (#3729)
Browse files Browse the repository at this point in the history
## Summary

Valgrind finds those to be uninitialized in GPU runs with 1 MPI rank.

## Additional background

## Checklist

The proposed changes:
- [x] 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
  • Loading branch information
ax3l authored Jan 30, 2024
1 parent ab99ea6 commit 4aeeabe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/Particle/AMReX_ParticleCommunication.H
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ struct ParticleCopyPlan
Vector<int> m_rcv_box_pids;
Vector<int> m_rcv_box_levs;

Long m_NumSnds;
int m_nrcvs;
Long m_NumSnds = 0;
int m_nrcvs = 0;
mutable Vector<MPI_Status> m_build_stats;
mutable Vector<MPI_Request> m_build_rreqs;

Expand Down

0 comments on commit 4aeeabe

Please sign in to comment.