Skip to content

Commit

Permalink
Fix regression in Fortran Interfaces for Particles (AMReX-Codes#3565)
Browse files Browse the repository at this point in the history
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
atmyers authored Sep 27, 2023
1 parent f08b40b commit 1ac263f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/F_Interfaces/Particle/AMReX_particlecontainer_fi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ extern "C" {
np = particle_tile.numParticles();
if (np > 0) {
auto& aos = particle_tile.GetArrayOfStructs();
dp = aos.data();
dp = reinterpret_cast<FParticleContainer::ParticleType*>(aos.data());
} else {
dp = nullptr;
}
Expand Down Expand Up @@ -127,7 +127,7 @@ extern "C" {
np = particle_tile.numParticles();
if (np > 0) {
auto& aos = particle_tile.GetArrayOfStructs();
dp = aos.data();
dp = reinterpret_cast<FParticleContainer::ParticleType*>(aos.data());
} else {
dp = nullptr;
}
Expand Down

0 comments on commit 1ac263f

Please sign in to comment.