From 98d24e52a63d16a97301d742429e40982b12d106 Mon Sep 17 00:00:00 2001 From: Weiqun Zhang Date: Tue, 6 Jun 2017 09:21:51 -0700 Subject: fix restart --- Source/WarpXInitData.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Source/WarpXInitData.cpp') diff --git a/Source/WarpXInitData.cpp b/Source/WarpXInitData.cpp index 8660cdaec..03242f034 100644 --- a/Source/WarpXInitData.cpp +++ b/Source/WarpXInitData.cpp @@ -57,7 +57,14 @@ WarpX::InitFromScratch () InitOpenbc(); #endif - if (do_pml) { + InitPML(); +} + +void +WarpX::InitPML () +{ + if (do_pml) + { pml[0].reset(new PML(boxArray(0), DistributionMap(0), &Geom(0), nullptr, pml_ncell, 0)); for (int lev = 1; lev <= finest_level; ++lev) { -- cgit v1.2.3