Skip to content

Commit

Permalink
minor bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamer2368 committed Jan 19, 2024
1 parent 8815df7 commit 3d0d127
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions utils/python/box_comp_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,18 @@
jloc = np.array(iloc)
jloc *= -1
jloc = tuple(jloc)
jface = -1
for jcomp in example.comps:
jface = -1
if (jloc in jcomp.face_map):
jface = jcomp.face_map[jloc]
break
if (jface < 0):
continue
else:
example.appendRefPort(icomp.name, jcomp.name, iface, jface)
else:
continue
print(icomp.name, jcomp.name, iface, jface)
if (jface < 0):
continue
else:
print('accepted')
example.appendRefPort(icomp.name, jcomp.name, iface, jface)

for c in range(len(example.comps)):
example.addMesh(c, 0)
Expand Down

0 comments on commit 3d0d127

Please sign in to comment.