@@ -149,7 +149,7 @@ def prepareAMRData(t_case, t, IBM_parameters=None, check=False, dim=3, localDir=
149149 Cmpi .trace ("Extract front faces of IBM target points [end] " , master = True , cpu = False )
150150
151151 Cmpi .trace (" Removing blanked cells [start]" , master = True , cpu = False )
152- t = P .selectCells (t ,"{cellN}==1." , strict = 1 )
152+ t = P .selectCells (t , "{cellN}==1." , strict = 1 )
153153 Internal ._rmNodesFromName (t ,"FlowSolution" )
154154 for node in Internal .getNodesFromType (t , "Elements_t" ):
155155 if node [0 ] != "GridElements" :
@@ -207,14 +207,14 @@ def prepareAMRData(t_case, t, IBM_parameters=None, check=False, dim=3, localDir=
207207
208208 if VPM == False :
209209 Cmpi .trace (" Extracting front of the donor points [start]" , master = True , cpu = False )
210- if frontTypeDP == "1" :
210+ if frontTypeDP == "1" :
211211 frontDP_gath = extractFrontDP (t , frontIP_gath , dim , sym3D , check , localDir = localDir )
212212 else :
213213 frontDP_gath = None
214214 del frontIP_gath
215215 Cmpi .trace (" Extracting front of the donor points [end] " , master = True , cpu = False )
216216
217- if dimfrontIP > 0 :
217+ if dimfrontIP > 0 :
218218 if IBM_parameters ["spatial discretization" ]["type" ] == "FV" :
219219 Cmpi .trace (" Computing normals via project ortho [start]" , master = False , cpu = False )
220220 _computeNormalsViaProjectOrtho__ (frontIP , tb2 )
@@ -409,18 +409,18 @@ def extractIBMPoints(tb, frontIP, frontIP_C, frontDP, bbo, IBM_parameters, check
409409 nzonesR = len (allInterpPts )
410410
411411 nameZone = ['IBM' , 'Wall' , 'Image' ]
412- tLocal3 = C .newPyTree (nameZone )
413- tLocal4 = C .newPyTree (nameZone )
414- isWrite3 = 0
415- isWrite4 = 0
412+ tLocal3 = C .newPyTree (nameZone )
413+ tLocal4 = C .newPyTree (nameZone )
414+ isWrite3 = 0
415+ isWrite4 = 0
416416 allProjectPts = res [3 ]
417417 allProjectPts = Converter .extractVars (allProjectPts , ['ProjectionType' ])
418418 outputProjection3 = [[],[],[],[],[],[],[],[],[]]
419419 outputProjection4 = [[],[],[],[],[],[],[],[],[]]
420420 for noz in range (nzonesR ):
421421 arrayLocal = allProjectPts [noz ][1 ][0 ]
422- type_3 = numpy .count_nonzero (arrayLocal == 3 )
423- type_4 = numpy .count_nonzero (arrayLocal == 4 )
422+ type_3 = numpy .count_nonzero (arrayLocal == 3 )
423+ type_4 = numpy .count_nonzero (arrayLocal == 4 )
424424
425425 if type_3 > 0 : X_IBM ._prepOutputProject__ (outputProjection3 , 3 , arrayLocal , allCorrectedPts [noz ][1 ], allWallPts [noz ][1 ], allInterpPts [noz ][1 ])
426426 if type_4 > 0 : X_IBM ._prepOutputProject__ (outputProjection4 , 4 , arrayLocal , allCorrectedPts [noz ][1 ], allWallPts [noz ][1 ], allInterpPts [noz ][1 ])
@@ -995,7 +995,7 @@ def prepareAMRIBM(tb, levelMax, vmins, dim, IBM_parameters, toffset=None, check=
995995
996996 Cmpi .trace ('AMR Mesh Dist2Walls...start' , master = True )
997997 tb2 = Internal .copyTree (tb )
998- if dim == 2 :tb2 = T .addkplane (tb )
998+ if dim == 2 : tb2 = T .addkplane (tb )
999999 else :
10001000 baseSYM = Internal .getNodesFromName1 (tb2 , "SYM" )
10011001 if baseSYM :
@@ -1009,17 +1009,17 @@ def prepareAMRIBM(tb, levelMax, vmins, dim, IBM_parameters, toffset=None, check=
10091009
10101010 if OutputAMRMesh : Cmpi .convertPyTree2File (t_AMR , localDir + 'tAMRMesh.cgns' )
10111011 ## Ncells output
1012- Ncells = C .getNCells (t_AMR )
1013- Ncells = Cmpi .allreduce (Ncells , op = Cmpi .SUM )
1012+ Ncells = C .getNCells (t_AMR )
1013+ Ncells = Cmpi .allreduce (Ncells , op = Cmpi .SUM )
10141014 if Cmpi .master : print ("[MESH GEN.] Number of Cells::%ge06" % (Ncells / 1e06 ), flush = True )
10151015
10161016 ## ==================
10171017 ## ==== IBM Prep ====
10181018 ## ==================
10191019 t_AMR = prepareAMRData (tb , t_AMR , IBM_parameters = IBM_parameters , dim = dim , check = check , localDir = localDir , forceAlignment = forceAlignment )
10201020 ## Ncells output
1021- Ncells = C .getNCells (t_AMR )
1022- Ncells = Cmpi .allreduce (Ncells , op = Cmpi .SUM )
1021+ Ncells = C .getNCells (t_AMR )
1022+ Ncells = Cmpi .allreduce (Ncells , op = Cmpi .SUM )
10231023 if Cmpi .master : print ("[IBM PREP.] Number of Cells::%ge06" % (Ncells / 1e06 ), flush = True )
10241024
10251025 if fileName is not None :
0 commit comments