aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhotonParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2019-06-03 12:01:13 +0200
committerGravatar Luca Fedeli <luca.fedeli@cea.fr> 2019-06-03 12:01:13 +0200
commiteb61eabea96c7fe4dfdbc890053f52f0548d3ed4 (patch)
tree3591144b53731617299dce1b066c235f1260f959 /Source/Particles/PhotonParticleContainer.cpp
parentcf3b3e52e484eca8c5640f65863186ba47137cad (diff)
downloadWarpX-eb61eabea96c7fe4dfdbc890053f52f0548d3ed4.tar.gz
WarpX-eb61eabea96c7fe4dfdbc890053f52f0548d3ed4.tar.zst
WarpX-eb61eabea96c7fe4dfdbc890053f52f0548d3ed4.zip
initial work for a function to initialize optical depth
Diffstat (limited to 'Source/Particles/PhotonParticleContainer.cpp')
-rw-r--r--Source/Particles/PhotonParticleContainer.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp
index b0bbf406a..b440b7990 100644
--- a/Source/Particles/PhotonParticleContainer.cpp
+++ b/Source/Particles/PhotonParticleContainer.cpp
@@ -36,6 +36,7 @@ PhotonParticleContainer::PhotonParticleContainer (AmrCore* amr_core, int ispecie
void PhotonParticleContainer::InitData()
{
AddParticles(0); // Note - add on level 0
+
if (maxLevel() > 0) {
Redistribute(); // We then redistribute
}
@@ -102,3 +103,10 @@ PhotonParticleContainer::Evolve (int lev,
cBx, cBy, cBz,
t, dt);
}
+
+
+#ifdef WARPX_QED
+ void InitOpticalDepth(){
+
+ }
+#endif