Skip to content

Commit

Permalink
Fix: PC Tile Copy w/ Names (#4298)
Browse files Browse the repository at this point in the history
## Summary

We forgot a `define()` that also needs to forward the names of SoA
components. This fixes it.

## Additional background

First seen in AMReX-Codes/pyamrex#382

## Checklist

The proposed changes:
- [x] fix a bug or incorrect behavior in AMReX
- [ ] add new capabilities to AMReX
- [ ] changes answers in the test suite to more than roundoff level
- [ ] are likely to significantly affect the results of downstream AMReX
users
- [ ] include documentation in the code and/or rst files, if appropriate
  • Loading branch information
ax3l authored Jan 17, 2025
1 parent e6828ed commit 0233b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Particle/AMReX_ParticleContainer.H
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@ public:
ParticleTileType& DefineAndReturnParticleTile (int lev, const Iterator& iter)
{
auto index = std::make_pair(iter.index(), iter.LocalTileIndex());
m_particles[lev][index].define(NumRuntimeRealComps(), NumRuntimeIntComps());
m_particles[lev][index].define(NumRuntimeRealComps(), NumRuntimeIntComps(), &m_soa_rdata_names, &m_soa_idata_names);
return ParticlesAt(lev, iter);
}

Expand Down

0 comments on commit 0233b8e

Please sign in to comment.