diff options
author | 2023-03-17 16:01:36 -0700 | |
---|---|---|
committer | 2023-03-17 23:01:36 +0000 | |
commit | 175a4b2746e6954e6a621fd97817c70bd05ae199 (patch) | |
tree | 6f25e560818231175685df25e16d4722c3add5a9 /Source/Initialization/WarpXInitData.cpp | |
parent | e2c5a6ec3d958b4a9dc86c301fba450f3f5db14b (diff) | |
download | WarpX-175a4b2746e6954e6a621fd97817c70bd05ae199.tar.gz WarpX-175a4b2746e6954e6a621fd97817c70bd05ae199.tar.zst WarpX-175a4b2746e6954e6a621fd97817c70bd05ae199.zip |
Add G in `CheckGuardCells` (needed w/ div(B) cleaning) (#3761)
Diffstat (limited to '')
-rw-r--r-- | Source/Initialization/WarpXInitData.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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]); + } } } } |