Skip to content

Commit 530baf9

Browse files
committed
latest changes
1 parent 12e432e commit 530baf9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

python/plot3d/periodicity.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -400,23 +400,22 @@ def rotated_periodicity(blocks:List[Block], matched_faces:List[Dict[str,int]], o
400400
outer_face_combos = list(permutations(range(len(outer_faces_all)),2))
401401
outer_face_combos = list(set(outer_face_combos) - set(non_matching)) # removes face combinations already checked
402402
t = trange(len(outer_face_combos))
403-
for i in t:
403+
for i in t:
404404
# Check if surfaces are periodic with each other
405405
face1_indx = outer_face_combos[i][0]
406406
face2_indx = outer_face_combos[i][1]
407407
face1 = outer_faces_all[face1_indx]
408408
face2 = outer_faces_all[face2_indx]
409-
t.set_description(f"Checking connections block {face1.blockIndex} with {face2.blockIndex}")
410409

411410
if (face1.IMIN == face1.IMAX) and (face2.IMIN == face2.IMAX) or \
412411
(face1.JMIN == face1.JMAX) and (face2.JMIN == face2.JMAX) or \
413412
(face1.KMIN == face1.KMAX) and (face2.KMIN == face2.KMAX):
414-
413+
415414
# Rotate Block 1 -> Check periodicity -> if not periodic -> Rotate Block 1 opposite direction -> Check periodicity
416415
# Rotate Block 1
417416
block1_rotated = blocks_rotated[face1.blockIndex]
418417
block2 = blocks[face2.blockIndex]
419-
print(f'evaluating working blocks: a={face1.blockIndex} b={face2.blockIndex}')
418+
t.set_description(f"Blk {face1.blockIndex} <-> {face2.blockIndex} | found {len(periodic_faces)}")
420419
# Check periodicity
421420
df, periodic_faces_temp, split_faces_temp = __periodicity_check__(face1,face2,block1_rotated, block2)
422421

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "plot3d"
3-
version = "1.8.0"
3+
version = "1.8.1"
44
description = "Plot3D python utilities for reading and writing and also finding connectivity between blocks"
55
authors = ["Paht Juangphanich <paht.juangphanich@nasa.gov>"]
66

0 commit comments

Comments
 (0)