aboutsummaryrefslogtreecommitdiff
path: root/Source/Parallelization/WarpXComm.cpp
diff options
context:
space:
mode:
authorGravatar Edoardo Zoni <59625522+EZoni@users.noreply.github.com> 2021-10-06 13:35:00 -0700
committerGravatar GitHub <noreply@github.com> 2021-10-06 13:35:00 -0700
commit964c3dce36c1ed80b7d94f400d2fcbe0ab58dd7f (patch)
treeb5a91468e6eef88a0993d69f67fedaef48d8fde0 /Source/Parallelization/WarpXComm.cpp
parentd211951955d1b2965cdeb219160cfb9208a15f79 (diff)
downloadWarpX-964c3dce36c1ed80b7d94f400d2fcbe0ab58dd7f.tar.gz
WarpX-964c3dce36c1ed80b7d94f400d2fcbe0ab58dd7f.tar.zst
WarpX-964c3dce36c1ed80b7d94f400d2fcbe0ab58dd7f.zip
FillBoundaryG: Add PML Exchange (#2381)
Diffstat (limited to '')
-rw-r--r--Source/Parallelization/WarpXComm.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/Source/Parallelization/WarpXComm.cpp b/Source/Parallelization/WarpXComm.cpp
index 1c871af5b..d03c9c721 100644
--- a/Source/Parallelization/WarpXComm.cpp
+++ b/Source/Parallelization/WarpXComm.cpp
@@ -821,7 +821,11 @@ void WarpX::FillBoundaryG (int lev, PatchType patch_type, IntVect ng)
{
if (patch_type == PatchType::fine && G_fp[lev])
{
- // TODO Exchange in PML cells will go here
+ if (do_pml && pml[lev]->ok())
+ {
+ pml[lev]->ExchangeG(patch_type, G_fp[lev].get(), do_pml_in_domain);
+ pml[lev]->FillBoundaryG(patch_type);
+ }
const auto& period = Geom(lev).periodicity();
@@ -839,7 +843,11 @@ void WarpX::FillBoundaryG (int lev, PatchType patch_type, IntVect ng)
}
else if (patch_type == PatchType::coarse && G_cp[lev])
{
- // TODO Exchange in PML cells will go here
+ if (do_pml && pml[lev]->ok())
+ {
+ pml[lev]->ExchangeG(patch_type, G_cp[lev].get(), do_pml_in_domain);
+ pml[lev]->FillBoundaryG(patch_type);
+ }
const auto& cperiod = Geom(lev-1).periodicity();