Skip to content

Commit

Permalink
fix for RZ
Browse files Browse the repository at this point in the history
  • Loading branch information
guj committed Nov 2, 2023
1 parent adb5248 commit 297f35e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/Diagnostics/FlushFormats/warpxWriter.H
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void AMReX_warpxWriter::SetupMeshComp (openPMD::Mesh& mesh,

#if defined(WARPX_DIM_RZ)
auto & warpx = WarpX::GetInstance();
if (curr.m_ThetaMode) {
if (varName.m_ThetaMode) {
global_size.emplace(global_size.begin(), warpx.ncomps);
}
#endif
Expand Down Expand Up @@ -260,6 +260,9 @@ AMReX_warpxWriter::SavePosId_RZ(PIt& pti,
BL_PROFILE("amrex::openpmd_api::SavePosId( RZ ..)");

#if defined(WARPX_DIM_RZ)
auto const numParticleOnTile = pti.numParticles();
uint64_t const numParticleOnTile64 = static_cast<uint64_t>( numParticleOnTile );

const auto& aos = pti.GetArrayOfStructs(); // size = numParticlesOnTile
{
// Save positions
Expand Down

0 comments on commit 297f35e

Please sign in to comment.