Skip to content

Commit

Permalink
fixing bug from last commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinRayAngus committed Feb 14, 2025
1 parent dc41ca6 commit 671a7d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/BoundaryConditions/WarpX_PEC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,9 @@ namespace
iv_mirror[idim] = mirrorfac[idim][iside] - ijk_vec[idim];

// Note that this includes the cells on the boundary
field(ijk_vec,n) += psign[idim][iside] * field(iv_mirror,n);
if (fabbox.contains(iv_mirror)) {
field(ijk_vec,n) += psign[idim][iside] * field(iv_mirror,n);
}

}
}
Expand Down

0 comments on commit 671a7d0

Please sign in to comment.