Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ FieldProbeParticleContainer::AddNParticles (int lev,
using PinnedTile = typename ContainerLike<amrex::PinnedArenaAllocator>::ParticleTileType;

PinnedTile pinned_tile;
pinned_tile.define(NumRuntimeRealComps(), NumRuntimeIntComps());
auto soa_rdata_names = GetRealSoANames();
auto soa_idata_names = GetIntSoANames();
pinned_tile.define(NumRuntimeRealComps(), NumRuntimeIntComps(), &soa_rdata_names, &soa_idata_names);

for (int i = 0; i < np; i++)
{
Expand Down
4 changes: 3 additions & 1 deletion Source/Particles/Sorting/Partition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ PhysicalParticleContainer::PartitionParticlesInBuffers(
{
// Prepare temporary particle tile to copy to
ParticleTileType ptile_tmp;
ptile_tmp.define(NumRuntimeRealComps(), NumRuntimeIntComps());
auto soa_rdata_names = GetRealSoANames();
auto soa_idata_names = GetIntSoANames();
ptile_tmp.define(NumRuntimeRealComps(), NumRuntimeIntComps(), &soa_rdata_names, &soa_idata_names);
ptile_tmp.resize(np);

// Copy and re-order the data of the current particle tile
Expand Down
4 changes: 3 additions & 1 deletion Source/Particles/WarpXParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ WarpXParticleContainer::AddNParticles (int /*lev*/, long n,

using PinnedTile = typename ContainerLike<amrex::PinnedArenaAllocator>::ParticleTileType;
PinnedTile pinned_tile;
pinned_tile.define(NumRuntimeRealComps(), NumRuntimeIntComps());
auto soa_rdata_names = GetRealSoANames();
auto soa_idata_names = GetIntSoANames();
pinned_tile.define(NumRuntimeRealComps(), NumRuntimeIntComps(), &soa_rdata_names, &soa_idata_names);

const std::size_t np = iend-ibegin;

Expand Down
Loading