Skip to content

Commit

Permalink
fix pml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mo Chen authored and Mo Chen committed Feb 22, 2022
1 parent b5d6237 commit 1266614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ void structure::use_pml(direction d, boundary_side b, double dx) {
grid_volume pml_volume = gv;
pml_volume.set_num_direction(d, int(dx * user_volume.a + 1 + 0.5)); // FIXME: exact value?
const int v_to_user_shift =
(user_volume.big_corner().in_direction(d) - gv.big_corner().in_direction(d)) / 2;
(gv.big_corner().in_direction(d) - user_volume.big_corner().in_direction(d)) / 2;

if (b == High){
pml_volume.set_origin(d, user_volume.big_corner().in_direction(d) -
Expand Down

0 comments on commit 1266614

Please sign in to comment.