aboutsummaryrefslogtreecommitdiff
path: root/Source/Utils/WarpXMovingWindow.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-05-07 09:32:47 -0700
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-05-07 09:32:47 -0700
commit6bdafd570c25fde71d2ce93ecea6fbd803f8cf2c (patch)
treefd173453823f9267e32301bcbec5942baf8bfb0a /Source/Utils/WarpXMovingWindow.cpp
parent38b802c0ba0d47fd179a2b384e8867248de078e9 (diff)
downloadWarpX-6bdafd570c25fde71d2ce93ecea6fbd803f8cf2c.tar.gz
WarpX-6bdafd570c25fde71d2ce93ecea6fbd803f8cf2c.tar.zst
WarpX-6bdafd570c25fde71d2ce93ecea6fbd803f8cf2c.zip
laser and plasma cont injection combined and working with MW and boost in z
Diffstat (limited to '')
-rw-r--r--Source/Utils/WarpXMovingWindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Utils/WarpXMovingWindow.cpp b/Source/Utils/WarpXMovingWindow.cpp
index 5b84a1eb0..2ba1d2f59 100644
--- a/Source/Utils/WarpXMovingWindow.cpp
+++ b/Source/Utils/WarpXMovingWindow.cpp
@@ -33,8 +33,10 @@ WarpX::MoveWindow (bool move_j)
// and of the plasma injection
moving_window_x += moving_window_v * dt[0];
int dir = moving_window_dir;
- UpdatePlasmaInjectionPosition( dt[0] );
+ UpdatePlasmaInjectionPosition( dt[0] );
+ mypc->UpdateContinuousInjectionPosition( dt[0] );
+
// compute the number of cells to shift on the base level
Real new_lo[AMREX_SPACEDIM];
Real new_hi[AMREX_SPACEDIM];