42 using namespace amrex;
53 using PinnedParIter =
typename T_ParticleContainer::ParIterType;
55 const int nLevels = pc->finestLevel();
56 for (
int lev=0; lev<=nLevels; lev++){
58#pragma omp parallel if (Gpu::notInLaunchRegion())
60 for (PinnedParIter pti(*pc, lev); pti.isValid(); ++pti)
66 auto& attribs = pti.GetStructOfArrays().GetRealData();
71 const long np = pti.numParticles();
void storeFieldOnParticles(WarpXParticleContainer::Base &tmp, bool is_full_diagnostic, bool save_Ex, bool save_Ey, bool save_Ez, bool save_Bx, bool save_By, bool save_Bz)
Gathers fields from a MultiFab to the macroparticles. Adds a runtime component of the particle contai...
Definition ParticleIO.cpp:308
void particlesConvertUnits(ConvertDirection convert_direction, T_ParticleContainer *pc, amrex::ParticleReal const mass)
Definition ParticleIO.H:40
void storePhiOnParticles(WarpXParticleContainer::Base &tmp, ElectrostaticSolverAlgo electrostatic_solver_id, bool is_full_diagnostic)
Definition ParticleIO.cpp:253
ConvertDirection
Definition ParticleIO.H:21
@ WarpX_to_SI
Definition ParticleIO.H:21
@ SI_to_WarpX
Definition ParticleIO.H:21
amrex::ParticleContainerPureSoA< PIdx::nattribs, 0, amrex::PolymorphicArenaAllocator > Base
Definition WarpXParticleContainer.H:199
std::enable_if_t< std::is_integral_v< T > > ParallelFor(TypeList< CTOs... > ctos, std::array< int, sizeof...(CTOs)> const &runtime_options, T N, F &&f)