diff options
-rw-r--r-- | Source/WarpXPML.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/WarpXPML.cpp b/Source/WarpXPML.cpp index 955aa586b..cb8e8cc12 100644 --- a/Source/WarpXPML.cpp +++ b/Source/WarpXPML.cpp @@ -346,7 +346,8 @@ PML::PML (const BoxArray& grid_ba, const DistributionMapping& grid_dm, int nge = 2; int ngb = 2; int ngf = (do_moving_window) ? 2 : 0; - + if (WarpX::maxwell_fdtd_solver_id == 1) ngf = std::max( ngf, 1 ); + pml_E_fp[0].reset(new MultiFab(amrex::convert(ba,WarpX::Ex_nodal_flag), dm, 3, nge)); pml_E_fp[1].reset(new MultiFab(amrex::convert(ba,WarpX::Ey_nodal_flag), dm, 3, nge)); pml_E_fp[2].reset(new MultiFab(amrex::convert(ba,WarpX::Ez_nodal_flag), dm, 3, nge)); |