diff options
author | 2019-05-16 18:05:45 -0700 | |
---|---|---|
committer | 2019-05-16 18:05:45 -0700 | |
commit | e357ac13dbe948f1bf550584cf408a4e7cb0f312 (patch) | |
tree | 05f1cbbbb0ce7113a37ce3fb49178e3ce7c35cbb /Source/Particles/PhotonParticleContainer.cpp | |
parent | 2cbf664bb05e98b9125b737b5bbc1d457a668497 (diff) | |
download | WarpX-e357ac13dbe948f1bf550584cf408a4e7cb0f312.tar.gz WarpX-e357ac13dbe948f1bf550584cf408a4e7cb0f312.tar.zst WarpX-e357ac13dbe948f1bf550584cf408a4e7cb0f312.zip |
no particle pusher for photons
Diffstat (limited to 'Source/Particles/PhotonParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhotonParticleContainer.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp index 14af6c0d9..b4070a773 100644 --- a/Source/Particles/PhotonParticleContainer.cpp +++ b/Source/Particles/PhotonParticleContainer.cpp @@ -58,10 +58,11 @@ PhotonParticleContainer::PushPX(WarpXParIter& pti, const long np = pti.numParticles(); // Probably want to push photons in some way here. - // WarpXParticleContainer::PushX(int lev, Real dt) is probably - // a good start. - // In particular grep ParallelFor thing if you want - // to write GPU-compatible code. + // PhysicalParticleContainer::PushPX is probably + // a good start. Let's start by writing CPU code. + for (WarpXParIter pti(*this, 0); pti.isValid(); ++pti) + { + } } void @@ -75,6 +76,10 @@ PhotonParticleContainer::Evolve (int lev, const MultiFab* cBx, const MultiFab* cBy, const MultiFab* cBz, Real t, Real dt) { + // This does gather, push and depose. + // Push and depose have been re-written for photon, + // so they do not do anything. + // Currently, I guess photons do gather fields from the mesh. PhysicalParticleContainer::Evolve (lev, Ex, Ey, Ez, Bx, By, Bz, |