aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/LaserParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Edoardo Zoni <59625522+EZoni@users.noreply.github.com> 2023-08-10 16:24:45 -0700
committerGravatar GitHub <noreply@github.com> 2023-08-10 16:24:45 -0700
commit0d998613b311a87e7da496ef7368c3b7649a779c (patch)
tree72d84a67b75ff4e1e9a9c036393c16dc66176921 /Source/Particles/LaserParticleContainer.cpp
parent6ea18be7120684e2f704fd6753f2f2fc8e77ce35 (diff)
downloadWarpX-0d998613b311a87e7da496ef7368c3b7649a779c.tar.gz
WarpX-0d998613b311a87e7da496ef7368c3b7649a779c.tar.zst
WarpX-0d998613b311a87e7da496ef7368c3b7649a779c.zip
Fix continuous injection of lasers (#4112)
* Fix continuous injection of lasers - define new member functions nLasers and nContainers; - loop over all containers, not just over all "species". * Fix update of injection position for lasers * Fix CodeQL issues * Fix style * Rename `ispecies` as `index` * Rename functions to update injection and antenna positions
Diffstat (limited to 'Source/Particles/LaserParticleContainer.cpp')
-rw-r--r--Source/Particles/LaserParticleContainer.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/Particles/LaserParticleContainer.cpp b/Source/Particles/LaserParticleContainer.cpp
index 6fb8aa974..0f0259438 100644
--- a/Source/Particles/LaserParticleContainer.cpp
+++ b/Source/Particles/LaserParticleContainer.cpp
@@ -319,12 +319,8 @@ LaserParticleContainer::ContinuousInjection (const RealBox& injection_box)
}
}
-/* \brief update position of the antenna if running in boosted frame.
- * \param dt time step (level 0).
- * The up-to-date antenna position is stored in updated_position.
- */
void
-LaserParticleContainer::UpdateContinuousInjectionPosition (Real dt)
+LaserParticleContainer::UpdateAntennaPosition (const amrex::Real dt)
{
if (!m_enabled) return;