From f2136795785b551ad5f450da070aa54fedc2630c Mon Sep 17 00:00:00 2001 From: Remi Lehe Date: Thu, 18 Mar 2021 15:56:00 -0700 Subject: Add option to deposit current at arbitrary time (#1810) * Introduce relative_time for deposition * Deposit current at arbitrary time * Update documentation * Combine parameters in DepositCurrent * Explicitly show the time at which the current is deposited --- Source/Particles/LaserParticleContainer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Particles/LaserParticleContainer.cpp') diff --git a/Source/Particles/LaserParticleContainer.cpp b/Source/Particles/LaserParticleContainer.cpp index fe7990725..313fb7944 100644 --- a/Source/Particles/LaserParticleContainer.cpp +++ b/Source/Particles/LaserParticleContainer.cpp @@ -516,14 +516,14 @@ LaserParticleContainer::Evolve (int lev, int* ion_lev = nullptr; DepositCurrent(pti, wp, uxp, uyp, uzp, ion_lev, &jx, &jy, &jz, 0, np_current, thread_num, - lev, lev, dt); + lev, lev, dt, -0.5_rt); // Deposit current at t_{n+1/2} bool has_buffer = cjx; if (has_buffer){ // Deposit in buffers DepositCurrent(pti, wp, uxp, uyp, uzp, ion_lev, cjx, cjy, cjz, np_current, np-np_current, thread_num, - lev, lev-1, dt); + lev, lev-1, dt, -0.5_rt); // Deposit current at t_{n+1/2} } } -- cgit v1.2.3