Skip to content

Commit

Permalink
fix omp bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tannguyen153 committed Oct 4, 2024
1 parent db218d1 commit 4289819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AgentContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,10 @@ void AgentContainer::moveAirTravel (const iMultiFab& unit_mf, AirTravelFlow& air
BL_PROFILE("AgentContainer::moveAirTravel");
for (int lev = 0; lev <= finestLevel(); ++lev)
{
auto& plev = GetParticles(lev);
#ifdef AMREX_USE_OMP
#pragma omp parallel if (Gpu::notInLaunchRegion())
#endif
auto& plev = GetParticles(lev);
for(MFIter mfi = MakeMFIter(lev, TilingIfNotGPU()); mfi.isValid(); ++mfi)
{
const auto unit_arr = unit_mf[mfi].array();
Expand Down

0 comments on commit 4289819

Please sign in to comment.