diff --git a/metapeg_v2.py b/metapeg_v2.py index 6ffe92e..8f4ea7c 100644 --- a/metapeg_v2.py +++ b/metapeg_v2.py @@ -19,8 +19,8 @@ if not os.path.exists("results"): os.makedirs("results") ###### PHYSICS SETUP ###### -RESOLUTION = 20 #pixels per meep unit length (1um) -MAX_RUN_TIME = 700 #meep units +RESOLUTION = 10 #pixels per meep unit length (1um) +MAX_RUN_TIME = 400 #meep units WAVELENGTH_MIN_UM = 1.50 WAVELENGTH_MAX_UM = 1.60 PML_UM = 1.0 #PML thickness @@ -180,6 +180,7 @@ def epigraph_constraint( print("Inside epigraph_constraint function...") epigraph = epigraph_and_weights[0] weights = epigraph_and_weights[1:] + assert np.isnan(weights).any(), "NaN values found in weights in epigraph_constraint function" print("===========") print("Shape of weights in epigraph_constraint:", weights.shape) print("===========")