From a3b69fa32e519860228ce3afca10a9dc3a1dca9a Mon Sep 17 00:00:00 2001 From: Andrew Myers Date: Tue, 25 Jul 2023 20:02:27 -0700 Subject: [PATCH] Fix this version of WritePlotFile to use SuperParticle, as expected by WriteBinaryParticleData (#3449) Fixes these issues seen in the WarpX CI: https://github.com/ECP-WarpX/WarpX/actions/runs/5649976693/job/15305447602?pr=3474 https://github.com/ECP-WarpX/WarpX/actions/runs/5649976693/job/15305447804?pr=3474 --- Src/Particle/AMReX_ParticleIO.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Particle/AMReX_ParticleIO.H b/Src/Particle/AMReX_ParticleIO.H index d6f8d47ccc9..4417385d39f 100644 --- a/Src/Particle/AMReX_ParticleIO.H +++ b/Src/Particle/AMReX_ParticleIO.H @@ -169,7 +169,7 @@ ParticleContainer_impl WriteBinaryParticleData(dir, name, write_real_comp, write_int_comp, real_comp_names, int_comp_names, - [=] AMREX_GPU_HOST_DEVICE (const ParticleType& p) + [=] AMREX_GPU_HOST_DEVICE (const SuperParticleType& p) { return p.id() > 0; });