aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpXMove.cpp
diff options
context:
space:
mode:
authorGravatar Weiqun Zhang <weiqunzhang@lbl.gov> 2017-06-04 12:38:59 -0700
committerGravatar Weiqun Zhang <weiqunzhang@lbl.gov> 2017-06-04 12:38:59 -0700
commit4e9aca820bc68c80f16a214fa7c0412cdb1dbe8d (patch)
treeab8a0aa6883ea9edc5880afda4eb9264d9445bc4 /Source/WarpXMove.cpp
parenta1f8bcb0b1907e14b6ead1de2cb0cde45dad0fa7 (diff)
downloadWarpX-4e9aca820bc68c80f16a214fa7c0412cdb1dbe8d.tar.gz
WarpX-4e9aca820bc68c80f16a214fa7c0412cdb1dbe8d.tar.zst
WarpX-4e9aca820bc68c80f16a214fa7c0412cdb1dbe8d.zip
update MoveWindow
Diffstat (limited to 'Source/WarpXMove.cpp')
-rw-r--r--Source/WarpXMove.cpp21
1 files changed, 9 insertions, 12 deletions
diff --git a/Source/WarpXMove.cpp b/Source/WarpXMove.cpp
index c6c28fcd1..b96b20fc7 100644
--- a/Source/WarpXMove.cpp
+++ b/Source/WarpXMove.cpp
@@ -6,8 +6,6 @@ using namespace amrex;
void
WarpX::MoveWindow (bool move_j)
{
-// xxxxx
-#if 0
if (do_moving_window == 0) return;
if (max_level > 0) {
@@ -39,23 +37,22 @@ WarpX::MoveWindow (bool move_j)
geom[lev].ProbDomain(new_box);
// shift the mesh fields (Note - only on level 0 for now)
- shiftMF(*Bfield[lev][0], geom[lev], num_shift, dir);
- shiftMF(*Bfield[lev][1], geom[lev], num_shift, dir);
- shiftMF(*Bfield[lev][2], geom[lev], num_shift, dir);
- shiftMF(*Efield[lev][0], geom[lev], num_shift, dir);
- shiftMF(*Efield[lev][1], geom[lev], num_shift, dir);
- shiftMF(*Efield[lev][2], geom[lev], num_shift, dir);
+ shiftMF(*Bfield_fp[lev][0], geom[lev], num_shift, dir);
+ shiftMF(*Bfield_fp[lev][1], geom[lev], num_shift, dir);
+ shiftMF(*Bfield_fp[lev][2], geom[lev], num_shift, dir);
+ shiftMF(*Efield_fp[lev][0], geom[lev], num_shift, dir);
+ shiftMF(*Efield_fp[lev][1], geom[lev], num_shift, dir);
+ shiftMF(*Efield_fp[lev][2], geom[lev], num_shift, dir);
if (move_j) {
- shiftMF(*current[lev][0], geom[lev], num_shift, dir);
- shiftMF(*current[lev][1], geom[lev], num_shift, dir);
- shiftMF(*current[lev][2], geom[lev], num_shift, dir);
+ shiftMF(*current_fp[lev][0], geom[lev], num_shift, dir);
+ shiftMF(*current_fp[lev][1], geom[lev], num_shift, dir);
+ shiftMF(*current_fp[lev][2], geom[lev], num_shift, dir);
}
InjectPlasma(num_shift, dir);
// Redistribute (note - this removes particles that are outside of the box)
mypc->Redistribute();
-#endif
}
void