From 9306246cf44fdc3d6560fe6652da1bfc27e412c1 Mon Sep 17 00:00:00 2001 From: Weiqun Zhang Date: Mon, 20 Nov 2017 11:13:01 -0800 Subject: have to use 2 ghost cells in F when both do_dive_cleaning and do_moving_window are true --- Source/WarpXInitData.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Source/WarpXInitData.cpp') diff --git a/Source/WarpXInitData.cpp b/Source/WarpXInitData.cpp index a80d3e9dd..1278b3d9b 100644 --- a/Source/WarpXInitData.cpp +++ b/Source/WarpXInitData.cpp @@ -75,12 +75,13 @@ WarpX::InitPML () if (do_pml) { pml[0].reset(new PML(boxArray(0), DistributionMap(0), &Geom(0), nullptr, - pml_ncell, pml_delta, 0, do_dive_cleaning)); + pml_ncell, pml_delta, 0, do_dive_cleaning, do_moving_window)); for (int lev = 1; lev <= finest_level; ++lev) { pml[lev].reset(new PML(boxArray(lev), DistributionMap(lev), &Geom(lev), &Geom(lev-1), - pml_ncell, pml_delta, refRatio(lev-1)[0], do_dive_cleaning)); + pml_ncell, pml_delta, refRatio(lev-1)[0], do_dive_cleaning, + do_moving_window)); } } } -- cgit v1.2.3