Skip to content

Commit

Permalink
Update FastIBM.py
Browse files Browse the repository at this point in the history
Minor: removed duplicate write operation in createSurfaceProbes
  • Loading branch information
BconstantMMK authored Dec 14, 2024
1 parent e0939d7 commit 641ef3c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Cassiopee/Apps/Apps/Fast/FastIBM.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,12 @@ def createSurfaceProbes(tb, surface_in, probeSurfaceList):

ts = Internal.merge(surfaces)

if Cmpi.rank == 0:
C.convertPyTree2File(ts, surface_in)

if Cmpi.size > 1:
for b in Internal.getBases(ts):
T._splitNParts(b, Cmpi.size)
D2._distribute(b, Cmpi.size)

if Cmpi.rank == 0:
C.convertPyTree2File(ts, surface_in)
if Cmpi.rank == 0: C.convertPyTree2File(ts, surface_in)

Cmpi.barrier()

Expand Down Expand Up @@ -216,4 +212,4 @@ def integrateSurfaceProbes(dictOfProbes):

Cmpi.barrier()

return massflows
return massflows

0 comments on commit 641ef3c

Please sign in to comment.