aboutsummaryrefslogtreecommitdiff
path: root/Source/Laser/LaserParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2020-01-10 08:02:18 -0800
committerGravatar GitHub <noreply@github.com> 2020-01-10 08:02:18 -0800
commit8df823565b860150ee619f7b431aa513b03a7297 (patch)
treebeacf7b61404f8468d6429b40ca64ec0f57303bc /Source/Laser/LaserParticleContainer.cpp
parent60ec41dee3ac7630d4589abf227a3cf4503c7a7d (diff)
parent1d1e34bac4cb1d0ca6cde0e10811d58d76671026 (diff)
downloadWarpX-8df823565b860150ee619f7b431aa513b03a7297.tar.gz
WarpX-8df823565b860150ee619f7b431aa513b03a7297.tar.zst
WarpX-8df823565b860150ee619f7b431aa513b03a7297.zip
Merge pull request #532 from lucafedeli88/add_harmonic_beam
Inject a laser from an E(x,y,t) file
Diffstat (limited to 'Source/Laser/LaserParticleContainer.cpp')
-rw-r--r--Source/Laser/LaserParticleContainer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Laser/LaserParticleContainer.cpp b/Source/Laser/LaserParticleContainer.cpp
index a330200cc..ed4313b1e 100644
--- a/Source/Laser/LaserParticleContainer.cpp
+++ b/Source/Laser/LaserParticleContainer.cpp
@@ -386,6 +386,9 @@ LaserParticleContainer::Evolve (int lev,
t_lab = 1./WarpX::gamma_boost*t + WarpX::beta_boost*Z0_lab/PhysConst::c;
}
+ // Update laser profile
+ m_up_laser_profile->update(t);
+
BL_ASSERT(OnSameGrids(lev,jx));
MultiFab* cost = WarpX::getCosts(lev);