Commit ecaa46d
authored
Fix SuperParticle
## Summary
From #3585 commit: fixes a segfault for the legacy particle layout:
```
Thread 1 "python3" received signal SIGSEGV, Segmentation fault.
0x00007ffff5951e5c in amrex::ParticleTile<amrex::Particle<1, 1>, 2, 1, std::allocator>::push_back<2, 1, 0> (this=0x555555f206e0, sp=...) at /home/axel/src/pyamrex/build/_deps/fetchedamrex-src/Src/Particle/AMReX_ParticleTile.H:916
916 m_soa_tile.GetIdCPUData()[np] = sp.m_idcpu;
```
## Additional background
X-ref: AMReX-Codes/pyamrex#232
## 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 appropriatepush_back (#3661)1 parent d884f44 commit ecaa46d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
912 | 912 | | |
913 | 913 | | |
914 | 914 | | |
915 | | - | |
| 915 | + | |
916 | 916 | | |
917 | 917 | | |
918 | 918 | | |
| |||
0 commit comments