aboutsummaryrefslogtreecommitdiff
path: root/Source/BoundaryConditions/PML.cpp
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-12-11 15:11:24 -0800
committerGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-12-11 15:12:51 -0800
commit0fa3d30d3d5197bb18258c1eeb6bb917e522078e (patch)
tree95d5919aefa8e1fed62bc356e00313575330cdb1 /Source/BoundaryConditions/PML.cpp
parent84892de1590e0d856cbe19b9e269db8cae8ac9a2 (diff)
downloadWarpX-0fa3d30d3d5197bb18258c1eeb6bb917e522078e.tar.gz
WarpX-0fa3d30d3d5197bb18258c1eeb6bb917e522078e.tar.zst
WarpX-0fa3d30d3d5197bb18258c1eeb6bb917e522078e.zip
Fix number of guard cells copied to the PML
Diffstat (limited to 'Source/BoundaryConditions/PML.cpp')
-rw-r--r--Source/BoundaryConditions/PML.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/BoundaryConditions/PML.cpp b/Source/BoundaryConditions/PML.cpp
index 572030f73..f6d5e05ae 100644
--- a/Source/BoundaryConditions/PML.cpp
+++ b/Source/BoundaryConditions/PML.cpp
@@ -844,11 +844,10 @@ PML::Exchange (MultiFab& pml, MultiFab& reg, const Geometry& geom,
void
PML::CopyToPML (MultiFab& pml, MultiFab& reg, const Geometry& geom)
{
- const IntVect& ngr = reg.nGrowVect();
const IntVect& ngp = pml.nGrowVect();
const auto& period = geom.periodicity();
- pml.ParallelCopy(reg, 0, 0, 1, ngr, ngp, period);
+ pml.ParallelCopy(reg, 0, 0, 1, IntVect(0), ngp, period);
}
void