Skip to content

Commit 95657bd

Browse files
authored
Update ParticleBoundaryBuffer.cpp
1 parent 3baacd9 commit 95657bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Particles/ParticleBoundaryBuffer.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ void ParticleBoundaryBuffer::gatherParticles (MultiParticleContainer& mypc,
369369
}
370370
{
371371
WARPX_PROFILE("ParticleBoundaryBuffer::gatherParticles::filterAndTransform");
372-
const int step_scraped_index = ptile_buffer.NumRealComps()-1;
372+
const int step_scraped_index = ptile_buffer.NumRuntimeIntComps()-1;
373373
const int timestep = warpx_instance.getistep(0);
374374

375375
amrex::filterAndTransformParticles(ptile_buffer, ptile,
@@ -448,7 +448,7 @@ void ParticleBoundaryBuffer::gatherParticles (MultiParticleContainer& mypc,
448448
}
449449
auto& warpx = WarpX::GetInstance();
450450
const auto dt = warpx.getdt(pti.GetLevel());
451-
const int step_scraped_index = ptile_buffer.NumRealComps()-1;
451+
const int step_scraped_index = ptile_buffer.NumRuntimeIntComps()-1;
452452
const int step = warpx_instance.getistep(0);
453453

454454
{

0 commit comments

Comments
 (0)