Skip to content

Commit acfee52

Browse files
Merge pull request #468 from vincentcasseau/dev-computeBCMatchField
Converter: bug fix in computeBCMatchField for NGon
2 parents a6b9ff7 + e450006 commit acfee52

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Cassiopee/Converter/Converter/PyTree.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5649,7 +5649,7 @@ def computeBCMatchField(z, allMatch, variables=None):
56495649
if len(spl) != 1: varL.append(spl[1])
56505650
else: varL.append(spl[0])
56515651

5652-
fld = []; indR = None
5652+
fld = None; indR = None
56535653

56545654
for key in allMatch:
56555655
if key.split("/")[0] == z[0]:
@@ -5660,13 +5660,13 @@ def computeBCMatchField(z, allMatch, variables=None):
56605660
Internal.__FlowSolutionNodes__,
56615661
Internal.__FlowSolutionCenters__)
56625662

5663-
if indR is not None:
5663+
if fld is not None:
5664+
fld.append(fld1)
56645665
indR = numpy.concatenate((indR,indR1))
56655666
else:
5667+
fld = [fld1]
56665668
indR = indR1
56675669

5668-
fld.append(fld1)
5669-
56705670
return indR, fld
56715671

56725672

0 commit comments

Comments
 (0)