From d45933c3616d1306a287d8991b8507a3be0e511e Mon Sep 17 00:00:00 2001 From: Andrew Myers Date: Wed, 27 Sep 2023 18:42:37 -0700 Subject: [PATCH] Revert #3565 (#3567) This needs to be fixed on the FLASH-X side instead. --- Src/F_Interfaces/Particle/AMReX_particlecontainer_fi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/F_Interfaces/Particle/AMReX_particlecontainer_fi.cpp b/Src/F_Interfaces/Particle/AMReX_particlecontainer_fi.cpp index 7f82c0208ab..0f996a7b88a 100644 --- a/Src/F_Interfaces/Particle/AMReX_particlecontainer_fi.cpp +++ b/Src/F_Interfaces/Particle/AMReX_particlecontainer_fi.cpp @@ -81,7 +81,7 @@ extern "C" { np = particle_tile.numParticles(); if (np > 0) { auto& aos = particle_tile.GetArrayOfStructs(); - dp = reinterpret_cast(aos.data()); + dp = aos.data(); } else { dp = nullptr; } @@ -127,7 +127,7 @@ extern "C" { np = particle_tile.numParticles(); if (np > 0) { auto& aos = particle_tile.GetArrayOfStructs(); - dp = reinterpret_cast(aos.data()); + dp = aos.data(); } else { dp = nullptr; }