Skip to content

Commit

Permalink
Fix non-EB
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Dec 17, 2024
1 parent 3c6a88d commit 59ef806
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Particles/PhysicalParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1451,8 +1451,8 @@ PhysicalParticleContainer::AddPlasmaFlux (PlasmaInjector const& plasma_injector,
}

#ifdef AMREX_USE_EB
auto const& eb_flag_arr = eb_flag->const_array(mfi);
auto const& eb_data = eb_factory->getEBData(mfi);
auto eb_flag_arr = eb_flag ? eb_flag->const_array(mfi) : Array4<EBCellFlag const>{};
auto eb_data = eb_factory ? eb_factory->getEBData(mfi) : EBData{};
#endif

amrex::ParallelForRNG(overlap_box, [=] AMREX_GPU_DEVICE (int i, int j, int k, amrex::RandomEngine const& engine) noexcept
Expand Down

0 comments on commit 59ef806

Please sign in to comment.