From 641ef3c6a858c60f659ce7181ebb1aba45011c10 Mon Sep 17 00:00:00 2001 From: Benjamin Constant <35465352+BconstantMMK@users.noreply.github.com> Date: Sat, 14 Dec 2024 12:06:08 +0100 Subject: [PATCH] Update FastIBM.py Minor: removed duplicate write operation in createSurfaceProbes --- Cassiopee/Apps/Apps/Fast/FastIBM.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Cassiopee/Apps/Apps/Fast/FastIBM.py b/Cassiopee/Apps/Apps/Fast/FastIBM.py index ac933523e..cab806ae4 100644 --- a/Cassiopee/Apps/Apps/Fast/FastIBM.py +++ b/Cassiopee/Apps/Apps/Fast/FastIBM.py @@ -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() @@ -216,4 +212,4 @@ def integrateSurfaceProbes(dictOfProbes): Cmpi.barrier() - return massflows \ No newline at end of file + return massflows