From 175a4b2746e6954e6a621fd97817c70bd05ae199 Mon Sep 17 00:00:00 2001 From: Olga Shapoval <30510597+oshapoval@users.noreply.github.com> Date: Fri, 17 Mar 2023 16:01:36 -0700 Subject: Add G in `CheckGuardCells` (needed w/ div(B) cleaning) (#3761) --- Source/Initialization/WarpXInitData.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Source/Initialization/WarpXInitData.cpp') diff --git a/Source/Initialization/WarpXInitData.cpp b/Source/Initialization/WarpXInitData.cpp index cf5eda4ea..4b7cb4df6 100644 --- a/Source/Initialization/WarpXInitData.cpp +++ b/Source/Initialization/WarpXInitData.cpp @@ -1131,6 +1131,11 @@ void WarpX::CheckGuardCells() CheckGuardCells(*F_fp[lev]); } + if (G_fp[lev]) + { + CheckGuardCells(*G_fp[lev]); + } + // MultiFabs on coarse patch if (lev > 0) { @@ -1156,6 +1161,11 @@ void WarpX::CheckGuardCells() { CheckGuardCells(*F_cp[lev]); } + + if (G_cp[lev]) + { + CheckGuardCells(*G_cp[lev]); + } } } } -- cgit v1.2.3