From 3dfe843bb74b64a6fb3a3ec893cf7c058f062b65 Mon Sep 17 00:00:00 2001 From: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> Date: Thu, 10 Nov 2022 11:00:32 -0800 Subject: Vay Deposition: Filter D, Exchange Guard Cells of J (#3388) * Vay Deposition: Filter D, Exchange Guard Cells of J * Improve Inline Comment --- Source/Evolve/WarpXEvolve.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Source/Evolve/WarpXEvolve.cpp') 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 -- cgit v1.2.3