diff options
Diffstat (limited to 'Source/WarpXInitData.cpp')
-rw-r--r-- | Source/WarpXInitData.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
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) { |