mirror of
https://github.com/edoverg/modeconverter.git
synced 2026-10-14 23:06:39 +00:00
testing again for segm. errors.
This commit is contained in:
+3
-2
@@ -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("===========")
|
||||||
|
|||||||
Reference in New Issue
Block a user