diff options
author | 2022-11-10 11:00:32 -0800 | |
---|---|---|
committer | 2022-11-10 11:00:32 -0800 | |
commit | 3dfe843bb74b64a6fb3a3ec893cf7c058f062b65 (patch) | |
tree | 5c6dbd38651a69d46daf56f2bf2b73ff1097358e /Source/FieldSolver/WarpXPushFieldsEM.cpp | |
parent | c69297d58a75735d7995c27c1ba95a708fe9bc07 (diff) | |
download | WarpX-3dfe843bb74b64a6fb3a3ec893cf7c058f062b65.tar.gz WarpX-3dfe843bb74b64a6fb3a3ec893cf7c058f062b65.tar.zst WarpX-3dfe843bb74b64a6fb3a3ec893cf7c058f062b65.zip |
Vay Deposition: Filter D, Exchange Guard Cells of J (#3388)
* Vay Deposition: Filter D, Exchange Guard Cells of J
* Improve Inline Comment
Diffstat (limited to '')
-rw-r--r-- | Source/FieldSolver/WarpXPushFieldsEM.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/FieldSolver/WarpXPushFieldsEM.cpp b/Source/FieldSolver/WarpXPushFieldsEM.cpp index a3a882962..3d68e8e52 100644 --- a/Source/FieldSolver/WarpXPushFieldsEM.cpp +++ b/Source/FieldSolver/WarpXPushFieldsEM.cpp @@ -724,8 +724,13 @@ WarpX::PushPSATD () PSATDBackwardTransformJ(current_fp, current_cp); PSATDSubtractCurrentPartialSumsAvg(); - // Synchronize J and rho (if used) - SyncCurrent(current_fp, current_cp); + // Synchronize J and rho (if used). + // Here we call SumBoundaryJ instead of SyncCurrent, because + // filtering has been already applied to D in OneStep_nosub, + // by calling SyncCurrentAndRho (see Evolve/WarpXEvolve.cpp). + // TODO This works only without mesh refinement + const int lev = 0; + SumBoundaryJ(current_fp, lev, Geom(lev).periodicity()); SyncRho(); } |