From eb61eabea96c7fe4dfdbc890053f52f0548d3ed4 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Mon, 3 Jun 2019 12:01:13 +0200 Subject: initial work for a function to initialize optical depth --- Source/Particles/PhotonParticleContainer.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Source/Particles/PhotonParticleContainer.cpp') 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 -- cgit v1.2.3