Skip to content

Commit

Permalink
Fix bug in mesh refinement with PML
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiLehe committed Sep 18, 2024
1 parent dd78d7c commit f146fee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/Parallelization/WarpXComm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -730,8 +730,8 @@ WarpX::FillBoundaryE (const int lev, const PatchType patch_type, const amrex::In
{
const std::array<amrex::MultiFab*,3> mf_pml =
(patch_type == PatchType::fine) ?
m_fields.get_alldirs("pml_E_fp", finest_level) :
m_fields.get_alldirs("pml_E_cp", finest_level);
m_fields.get_alldirs("pml_E_fp", lev) :
m_fields.get_alldirs("pml_E_cp", lev);

pml[lev]->Exchange(mf_pml, mf, patch_type, do_pml_in_domain);
pml[lev]->FillBoundary(mf_pml, patch_type, nodal_sync);
Expand Down Expand Up @@ -795,8 +795,8 @@ WarpX::FillBoundaryB (const int lev, const PatchType patch_type, const amrex::In
{
const std::array<amrex::MultiFab*,3> mf_pml =
(patch_type == PatchType::fine) ?
m_fields.get_alldirs("pml_B_fp", finest_level) :
m_fields.get_alldirs("pml_B_cp", finest_level);
m_fields.get_alldirs("pml_B_fp", lev) :
m_fields.get_alldirs("pml_B_cp", lev);

pml[lev]->Exchange(mf_pml, mf, patch_type, do_pml_in_domain);
pml[lev]->FillBoundary(mf_pml, patch_type, nodal_sync);
Expand Down

0 comments on commit f146fee

Please sign in to comment.