diff options
author | 2019-12-12 08:29:36 -0800 | |
---|---|---|
committer | 2019-12-12 08:29:36 -0800 | |
commit | 8c23a7fe5045d894e1f98e728528d4476bacd384 (patch) | |
tree | 59b76fb8d5baafdb7653c425e565e1498b9730e6 /Source/BoundaryConditions/PML.cpp | |
parent | 579f8578759c2927615cf6f972d0e604403e5e32 (diff) | |
parent | 0fa3d30d3d5197bb18258c1eeb6bb917e522078e (diff) | |
download | WarpX-8c23a7fe5045d894e1f98e728528d4476bacd384.tar.gz WarpX-8c23a7fe5045d894e1f98e728528d4476bacd384.tar.zst WarpX-8c23a7fe5045d894e1f98e728528d4476bacd384.zip |
Merge pull request #567 from RemiLehe/fix_pml_in_domain
Fix number of guard cells copied to the PML
Diffstat (limited to 'Source/BoundaryConditions/PML.cpp')
-rw-r--r-- | Source/BoundaryConditions/PML.cpp | 3 |
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 |