From 659566750fa59def39218489dcfca70574d2a5bd Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Tue, 14 Jan 2025 21:59:46 -0800 Subject: [PATCH] update for new gridlock syntax --- examples/fdfd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/fdfd.py b/examples/fdfd.py index 16c2f20..e768ba7 100644 --- a/examples/fdfd.py +++ b/examples/fdfd.py @@ -126,7 +126,7 @@ def test1(solver=generic_solver): # #### Create the grid and draw the device #### grid = gridlock.Grid(edge_coords) epsilon = grid.allocate(n_air**2, dtype=numpy.float32) - grid.draw_cuboid(epsilon, center=center, dimensions=[8e3, w, th], eps=n_wg**2) + grid.draw_cuboid(epsilon, center=center, dimensions=[8e3, w, th], foreground=n_wg**2) dxes = [grid.dxyz, grid.autoshifted_dxyz()] for a in (0, 1, 2):