Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do Not Fill PML Guard Cells w/ Inverse FFTs #2854

Merged
merged 1 commit into from
Feb 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Source/BoundaryConditions/PML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,7 @@ PML::PML (const int lev, const BoxArray& grid_ba, const DistributionMapping& gri
"PML: PSATD solver selected but not built.");
#else
// Flags passed to the spectral solver constructor
const amrex::IntVect fill_guards = amrex::IntVect(0);
const bool in_pml = true;
const bool periodic_single_box = false;
const bool update_with_rho = false;
Expand All @@ -738,7 +739,7 @@ PML::PML (const int lev, const BoxArray& grid_ba, const DistributionMapping& gri
amrex::Vector<amrex::Real> const v_comoving_zero = {0., 0., 0.};
realspace_ba.enclosedCells().grow(nge); // cell-centered + guard cells
spectral_solver_fp = std::make_unique<SpectralSolver>(lev, realspace_ba, dm,
nox_fft, noy_fft, noz_fft, do_nodal, WarpX::fill_guards, v_galilean_zero,
nox_fft, noy_fft, noz_fft, do_nodal, fill_guards, v_galilean_zero,
v_comoving_zero, dx, dt, in_pml, periodic_single_box, update_with_rho,
fft_do_time_averaging, do_multi_J, m_dive_cleaning, m_divb_cleaning);
#endif
Expand Down Expand Up @@ -846,6 +847,7 @@ PML::PML (const int lev, const BoxArray& grid_ba, const DistributionMapping& gri
"PML: PSATD solver selected but not built.");
#else
// Flags passed to the spectral solver constructor
const amrex::IntVect fill_guards = amrex::IntVect(0);
const bool in_pml = true;
const bool periodic_single_box = false;
const bool update_with_rho = false;
Expand All @@ -857,7 +859,7 @@ PML::PML (const int lev, const BoxArray& grid_ba, const DistributionMapping& gri
amrex::Vector<amrex::Real> const v_comoving_zero = {0., 0., 0.};
realspace_cba.enclosedCells().grow(nge); // cell-centered + guard cells
spectral_solver_cp = std::make_unique<SpectralSolver>(lev, realspace_cba, cdm,
nox_fft, noy_fft, noz_fft, do_nodal, WarpX::fill_guards, v_galilean_zero,
nox_fft, noy_fft, noz_fft, do_nodal, fill_guards, v_galilean_zero,
v_comoving_zero, cdx, dt, in_pml, periodic_single_box, update_with_rho,
fft_do_time_averaging, do_multi_J, m_dive_cleaning, m_divb_cleaning);
#endif
Expand Down