From c62b14b04d3e6f35357c9e1eeca706c5e220e29d Mon Sep 17 00:00:00 2001 From: David Grote Date: Fri, 30 Aug 2024 10:31:00 -0700 Subject: [PATCH] Set default for m_current_injection_position --- Source/Particles/WarpXParticleContainer.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Particles/WarpXParticleContainer.H b/Source/Particles/WarpXParticleContainer.H index b44cb33d66b..7e882c151e8 100644 --- a/Source/Particles/WarpXParticleContainer.H +++ b/Source/Particles/WarpXParticleContainer.H @@ -354,7 +354,7 @@ public: amrex::Vector m_E_external_particle; //! Current injection position - amrex::Real m_current_injection_position; + amrex::Real m_current_injection_position = 0.; // split along diagonals (0) or axes (1) int split_type = 0;