From 75185dc5093fd5ff81ad437f49e32796af764c9e Mon Sep 17 00:00:00 2001 From: Dave Grote Date: Tue, 10 Oct 2023 15:50:06 -0700 Subject: [PATCH] Fix ParticleExtrema --- Source/Diagnostics/ReducedDiags/ParticleExtrema.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Diagnostics/ReducedDiags/ParticleExtrema.cpp b/Source/Diagnostics/ReducedDiags/ParticleExtrema.cpp index 5cc52b4258f..2a64c4c7ff0 100644 --- a/Source/Diagnostics/ReducedDiags/ParticleExtrema.cpp +++ b/Source/Diagnostics/ReducedDiags/ParticleExtrema.cpp @@ -397,11 +397,11 @@ void ParticleExtrema::ComputeDiags (int step) const int offset = 0; const auto getExternalEB = GetExternalEBField(pti, offset); const amrex::ParticleReal Ex_external_particle = myspc.m_E_external_particle[0]; - const amrex::ParticleReal Ey_external_particle = myspc.m_E_external_particle[0]; - const amrex::ParticleReal Ez_external_particle = myspc.m_E_external_particle[0]; + const amrex::ParticleReal Ey_external_particle = myspc.m_E_external_particle[1]; + const amrex::ParticleReal Ez_external_particle = myspc.m_E_external_particle[2]; const amrex::ParticleReal Bx_external_particle = myspc.m_B_external_particle[0]; - const amrex::ParticleReal By_external_particle = myspc.m_B_external_particle[0]; - const amrex::ParticleReal Bz_external_particle = myspc.m_B_external_particle[0]; + const amrex::ParticleReal By_external_particle = myspc.m_B_external_particle[1]; + const amrex::ParticleReal Bz_external_particle = myspc.m_B_external_particle[2]; // define variables in preparation for field gathering amrex::Box box = pti.tilebox();