From 4aeeabef098633c699282887c7bbde953fa2bc2c Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Tue, 30 Jan 2024 11:02:08 -0800 Subject: [PATCH] Particle Copy Plan: Default Vals (#3729) ## 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 --- Src/Particle/AMReX_ParticleCommunication.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Particle/AMReX_ParticleCommunication.H b/Src/Particle/AMReX_ParticleCommunication.H index b041bcfdcbb..9cc7a2cef95 100644 --- a/Src/Particle/AMReX_ParticleCommunication.H +++ b/Src/Particle/AMReX_ParticleCommunication.H @@ -91,8 +91,8 @@ struct ParticleCopyPlan Vector m_rcv_box_pids; Vector m_rcv_box_levs; - Long m_NumSnds; - int m_nrcvs; + Long m_NumSnds = 0; + int m_nrcvs = 0; mutable Vector m_build_stats; mutable Vector m_build_rreqs;