File tree Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
10
10
### Fixed
11
11
- Gradient inaccuracy when a multi-frequency monitor is used but a single frequency is selected.
12
+ - Revert single cell center approximation for custom medium gradient.
12
13
13
14
## [ 2.7.7] - 2024-11-15
14
15
Original file line number Diff line number Diff line change @@ -260,20 +260,6 @@ def make_adjoint_monitors(
260
260
if isinstance (self .geometry , PolySlab ):
261
261
size [self .geometry .axis ] = 0
262
262
263
- # custom medium only needs fields at center locations of unit cells.
264
- if isinstance (self .medium , CustomMedium ):
265
- for axis , dim in enumerate ("xyz" ):
266
- if self .medium .permittivity is not None :
267
- if len (self .medium .permittivity .coords [dim ]) == 1 :
268
- size [axis ] = 0
269
- if self .medium .eps_dataset is not None :
270
- zero_size = True
271
- for _ , fld in self .medium .eps_dataset .field_components .items ():
272
- if len (fld .coords [dim ]) != 1 :
273
- zero_size = False
274
- if zero_size :
275
- size [axis ] = 0
276
-
277
263
mnt_fld = FieldMonitor (
278
264
size = size ,
279
265
center = center ,
You can’t perform that action at this time.
0 commit comments