aboutsummaryrefslogtreecommitdiff
path: root/Source/Evolve/WarpXEvolve.cpp
diff options
context:
space:
mode:
authorGravatar Edoardo Zoni <59625522+EZoni@users.noreply.github.com> 2022-11-10 11:00:32 -0800
committerGravatar GitHub <noreply@github.com> 2022-11-10 11:00:32 -0800
commit3dfe843bb74b64a6fb3a3ec893cf7c058f062b65 (patch)
tree5c6dbd38651a69d46daf56f2bf2b73ff1097358e /Source/Evolve/WarpXEvolve.cpp
parentc69297d58a75735d7995c27c1ba95a708fe9bc07 (diff)
downloadWarpX-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 'Source/Evolve/WarpXEvolve.cpp')
-rw-r--r--Source/Evolve/WarpXEvolve.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Evolve/WarpXEvolve.cpp b/Source/Evolve/WarpXEvolve.cpp
index 42042b7c7..5c3883007 100644
--- a/Source/Evolve/WarpXEvolve.cpp
+++ b/Source/Evolve/WarpXEvolve.cpp
@@ -501,6 +501,13 @@ void WarpX::SyncCurrentAndRho ()
SyncCurrent(current_fp, current_cp);
SyncRho();
}
+
+ if (current_deposition_algo == CurrentDepositionAlgo::Vay)
+ {
+ // TODO This works only without mesh refinement
+ const int lev = 0;
+ if (use_filter) ApplyFilterJ(current_fp_vay, lev);
+ }
}
}
else // FDTD