File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -90,16 +90,19 @@ def make_coords(
90
90
)
91
91
92
92
# incorporate symmetries
93
+ n_pml = list (num_pml_layers )
93
94
if symmetry [axis ] != 0 :
94
95
# Offset to center if symmetry present
95
96
center = structures [0 ].geometry .center [axis ]
96
97
center_ind = np .argmin (np .abs (center - bound_coords ))
97
98
bound_coords += center - bound_coords [center_ind ]
98
99
bound_coords = bound_coords [bound_coords >= center ]
99
100
bound_coords = np .append (2 * center - bound_coords [:0 :- 1 ], bound_coords )
101
+ # Apply PMLs on the - side as they are defined on the + side
102
+ n_pml [0 ] = n_pml [1 ]
100
103
101
104
# Add PML layers in using dl on edges
102
- bound_coords = self ._add_pml_to_bounds (num_pml_layers , bound_coords )
105
+ bound_coords = self ._add_pml_to_bounds (n_pml , bound_coords )
103
106
return bound_coords
104
107
105
108
@abstractmethod
You can’t perform that action at this time.
0 commit comments