testing again for segm. errors.

This commit is contained in:
2026-05-27 09:14:13 +02:00
parent 72517172c2
commit 7f8d9492d5
+3 -2
View File
@@ -19,8 +19,8 @@ if not os.path.exists("results"):
os.makedirs("results") os.makedirs("results")
###### PHYSICS SETUP ###### ###### PHYSICS SETUP ######
RESOLUTION = 20 #pixels per meep unit length (1um) RESOLUTION = 10 #pixels per meep unit length (1um)
MAX_RUN_TIME = 700 #meep units MAX_RUN_TIME = 400 #meep units
WAVELENGTH_MIN_UM = 1.50 WAVELENGTH_MIN_UM = 1.50
WAVELENGTH_MAX_UM = 1.60 WAVELENGTH_MAX_UM = 1.60
PML_UM = 1.0 #PML thickness PML_UM = 1.0 #PML thickness
@@ -180,6 +180,7 @@ def epigraph_constraint(
print("Inside epigraph_constraint function...") print("Inside epigraph_constraint function...")
epigraph = epigraph_and_weights[0] epigraph = epigraph_and_weights[0]
weights = epigraph_and_weights[1:] weights = epigraph_and_weights[1:]
assert np.isnan(weights).any(), "NaN values found in weights in epigraph_constraint function"
print("===========") print("===========")
print("Shape of weights in epigraph_constraint:", weights.shape) print("Shape of weights in epigraph_constraint:", weights.shape)
print("===========") print("===========")