Skip to content

Commit

Permalink
do not use range based for-loop with OMP
Browse files Browse the repository at this point in the history
  • Loading branch information
roelof-groenewald committed Mar 22, 2024
1 parent 6e18c42 commit 0a176b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Particle/AMReX_ParticleContainerI.H
Original file line number Diff line number Diff line change
Expand Up @@ -1836,7 +1836,7 @@ ParticleContainer_impl<ParticleType, NArrayReal, NArrayInt, Allocator, CellAssig
#ifdef AMREX_USE_OMP
#pragma omp parallel for
#endif
for (auto index : grid_tile_ids)
for (int pit = 0; pit < static_cast<int>(grid_tile_ids.size()); ++pit)
{
auto& ptile = DefineAndReturnParticleTile(lev, index.first, index.second);
auto& soa = ptile.GetStructOfArrays();
Expand Down

0 comments on commit 0a176b0

Please sign in to comment.