diff options
author | 2019-09-12 15:34:44 +0200 | |
---|---|---|
committer | 2019-09-12 15:34:44 +0200 | |
commit | 85ca7fb2a3786956af222af095f500c9a05a4b9d (patch) | |
tree | 3a81868399c39763b53b239fd4b7249a13103230 /Source/Particles/PhotonParticleContainer.cpp | |
parent | 1c8711a58c1495efb3ec05ea2912ab219a793c23 (diff) | |
download | WarpX-85ca7fb2a3786956af222af095f500c9a05a4b9d.tar.gz WarpX-85ca7fb2a3786956af222af095f500c9a05a4b9d.tar.zst WarpX-85ca7fb2a3786956af222af095f500c9a05a4b9d.zip |
Now physical particles have Tau initialization via QS engine
Diffstat (limited to 'Source/Particles/PhotonParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhotonParticleContainer.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp index 5fecaf525..1da8cace2 100644 --- a/Source/Particles/PhotonParticleContainer.cpp +++ b/Source/Particles/PhotonParticleContainer.cpp @@ -129,17 +129,17 @@ PhotonParticleContainer::Evolve (int lev, void PhotonParticleContainer::InitTauBreitWheeler() { BL_PROFILE("PhotonParticleContainer::InitOpticalDepth"); -//Looping over all the particles -int num_levels = finestLevel() + 1; -for (int lev=0; lev < num_levels; ++lev) - for (WarpXParIter pti(*this, lev); pti.isValid(); ++pti){ - auto taus = pti.GetAttribs(particle_comps["tau"]).dataPtr(); - amrex::ParallelFor( - pti.numParticles(), - [=] AMREX_GPU_DEVICE (long i) { - taus[i] = warpx_breit_wheeler_engine::get_optical_depth(); - } - ); + //Looping over all the particles + int num_levels = finestLevel() + 1; + for (int lev=0; lev < num_levels; ++lev) + for (WarpXParIter pti(*this, lev); pti.isValid(); ++pti){ + auto taus = pti.GetAttribs(particle_comps["tau"]).dataPtr(); + amrex::ParallelFor( + pti.numParticles(), + [=] AMREX_GPU_DEVICE (long i) { + taus[i] = warpx_breit_wheeler_engine::get_optical_depth(); + } + ); } } #endif |