From 0d998613b311a87e7da496ef7368c3b7649a779c Mon Sep 17 00:00:00 2001 From: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> Date: Thu, 10 Aug 2023 16:24:45 -0700 Subject: 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 --- Source/Particles/LaserParticleContainer.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'Source/Particles/LaserParticleContainer.cpp') 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; -- cgit v1.2.3