diff options
author | 2019-09-02 18:45:58 +0200 | |
---|---|---|
committer | 2019-09-02 18:45:58 +0200 | |
commit | 1478c79d4360a8d411523b7a115f207ef50ecdea (patch) | |
tree | 04a2be14a7b954859ec1ef6a9211a8072ca30ae7 /Source/Particles/PhotonParticleContainer.cpp | |
parent | 8b4eb6d1b86743d9fc278a4aa775175637b4fa68 (diff) | |
parent | d55fd6f190470cb56cfcbf3435d8b14a3ef597b8 (diff) | |
download | WarpX-1478c79d4360a8d411523b7a115f207ef50ecdea.tar.gz WarpX-1478c79d4360a8d411523b7a115f207ef50ecdea.tar.zst WarpX-1478c79d4360a8d411523b7a115f207ef50ecdea.zip |
Merge branch 'qed_playground' into qed_photons
Diffstat (limited to 'Source/Particles/PhotonParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhotonParticleContainer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp index 64b2e0095..95423e365 100644 --- a/Source/Particles/PhotonParticleContainer.cpp +++ b/Source/Particles/PhotonParticleContainer.cpp @@ -29,11 +29,13 @@ PhotonParticleContainer::PhotonParticleContainer (AmrCore* amr_core, int ispecie // store it into member data. pp.query("size_in_inches", size_in_inches); + } void PhotonParticleContainer::InitData() { AddParticles(0); // Note - add on level 0 + if (maxLevel() > 0) { Redistribute(); // We then redistribute } @@ -47,6 +49,7 @@ PhotonParticleContainer::PushPX(WarpXParIter& pti, Cuda::ManagedDeviceVector<Real>& giv, Real dt) { + // This wraps the momentum and position advance so that inheritors can modify the call. auto& attribs = pti.GetAttribs(); // Extract pointers to the different particle quantities @@ -79,6 +82,7 @@ PhotonParticleContainer::PushPX(WarpXParIter& pti, ux[i], uy[i], uz[i], dt ); } ); + } void @@ -106,3 +110,4 @@ PhotonParticleContainer::Evolve (int lev, cBx, cBy, cBz, t, dt); } + |