Skip to content

Commit 93b2e00

Browse files
committed
Converter: update newZone tests
1 parent d4f4099 commit 93b2e00

24 files changed

+27
-27
lines changed

Cassiopee/Apps/Apps/Coda/Post_IBM_CODA.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ def createPyTreeForIBMWallFieldsExtraction(donorPoints_numpy,wallPoints_numpy,au
170170

171171
zsize = numpy.empty((1,3), numpy.int32, order='F')
172172
zsize[0,0] = nb_node; zsize[0,1] = 0; zsize[0,2] = 0
173-
z = Internal.newZone(name='IBMWall',zsize=zsize,ztype='Unstructured')
174-
pytree = C.newPyTree(["DonorPointsPyTree",z])
173+
z = Internal.newZone(name='IBMWall', zsize=zsize, ztype='Unstructured')
174+
pytree = C.newPyTree(["DonorPointsPyTree", z])
175175

176176
coordx = numpy.ravel(donorPoints_numpy[:,0])
177177
coordy = numpy.ravel(donorPoints_numpy[:,1])

Cassiopee/Apps/Apps/Coda/ToolboxIBM_CODA.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,7 @@ def extractIBMWallFields(XCP, YCP, ZCP, arrayOfFields, tb, variables):
13341334
# 1. Creation of a CGNS zone O-D of cloud points
13351335
zsize = numpy.empty((1,3), numpy.int32, order='F')
13361336
zsize[0,0] = XCP.shape[0]; zsize[0,1] = 0; zsize[0,2] = 0
1337-
z = Internal.newZone(name='IBW_Wall',zsize=zsize,ztype='Unstructured')
1337+
z = Internal.newZone(name='IBW_Wall', zsize=zsize, ztype='Unstructured')
13381338
gc = Internal.newGridCoordinates(parent=z)
13391339
coordx = ['CoordinateX',XCP,[],'DataArray_t']
13401340
coordy = ['CoordinateY',YCP,[],'DataArray_t']

Cassiopee/Connector/Connector/IBM.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2649,7 +2649,7 @@ def createWallAdapt(tc):
26492649
# Creation d une seule zone
26502650
zsize = numpy.empty((1,3), Internal.E_NpyInt, order='F')
26512651
zsize[0,0] = xcNP.shape[0]; zsize[0,1] = 0; zsize[0,2] = 0
2652-
z = Internal.newZone(name=zname,zsize=zsize,ztype='Unstructured')
2652+
z = Internal.newZone(name=zname, zsize=zsize, ztype='Unstructured')
26532653
gc = Internal.newGridCoordinates(parent=z)
26542654
coordx = ['CoordinateX',xcNP,[],'DataArray_t']
26552655
coordy = ['CoordinateY',ycNP,[],'DataArray_t']

Cassiopee/Connector/test/computeFrictionVelocityPT.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
zsize = numpy.empty((1,3), numpy.int32, order='F')
1010
zsize[0,0] = nb_node; zsize[0,1] = 0; zsize[0,2] = 0
11-
z = Internal.newZone(name='IBW_Wall',zsize=zsize,ztype='Unstructured')
11+
z = Internal.newZone(name='IBW_Wall', zsize=zsize, ztype='Unstructured')
1212
coord_node = Internal.newGridCoordinates(parent=z)
1313
# Image Points : PI
1414
coord_node[2].append(['CoordinateX',numpy.array([0.1,0.2,0.3]),[],'DataArray_t'])

Cassiopee/Connector/test/computeFrictionVelocityPT_t1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
zsize = numpy.empty((1,3), Internal.E_NpyInt, order='F')
1111
zsize[0,0] = nb_node; zsize[0,1] = 0; zsize[0,2] = 0
12-
z = Internal.newZone(name='IBW_Wall',zsize=zsize,ztype='Unstructured')
12+
z = Internal.newZone(name='IBW_Wall', zsize=zsize, ztype='Unstructured')
1313
coord_node = Internal.newGridCoordinates(parent=z)
1414
# Image Points : PI
1515
coord_node[2].append(['CoordinateX',numpy.array([0.1,0.2,0.3]),[],'DataArray_t'])
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# - getChildFromName (pyTree) -
22
import Converter.Internal as Internal
33

4-
z = Internal.newZone('Zone', zsize=[[10, 2, 0]], ztype='Structured')
4+
z = Internal.newZone('Zone', zsize=[[10, 9, 0]], ztype='Structured')
55
print(Internal.getChildFromName(z, 'ZoneType'))
66
#>> ['ZoneType', array([b'S', b't', b'r', b'u', b'c', b't', b'u', b'r', ...]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# - getChildFromType (pyTree) -
22
import Converter.Internal as Internal
33

4-
z = Internal.newZone('Zone', zsize=[[10, 2, 0]], ztype='Structured')
4+
z = Internal.newZone('Zone', zsize=[[10, 9, 0]], ztype='Structured')
55
print(Internal.getChildFromType(z, 'ZoneType_t'))
66
#>> ['ZoneType', array([b'S', b't', b'r', b'u', b'c', b't', b'u', b'r', ...]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# - getChildrenFromType (pyTree) -
22
import Converter.Internal as Internal
33

4-
z = Internal.newZone('Zone', zsize=[[10, 2, 0]], ztype='Structured')
4+
z = Internal.newZone('Zone', zsize=[[10, 9, 0]], ztype='Structured')
55
print(Internal.getChildrenFromType(z, 'ZoneType_t'))
66
#>> [['ZoneType', array([b'S', b't', b'r', b'u', b'c', b't', b'u', b'r', b'e', b'd']...']]

Cassiopee/Converter/test/getValPT.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
import Converter.Internal as Internal
33

44
# getVal returns always numpys
5-
z = Internal.newZone('Zone', zsize=[[10, 2, 0]], ztype='Structured')
5+
z = Internal.newZone('Zone', zsize=[[10, 9, 0]], ztype='Structured')
66
print(Internal.getVal(z))
7-
# >> [[10 2 0]]
7+
# >> [[10 9 0]]
88
n = Internal.getNodeFromName(z, 'ZoneType')
99
print(Internal.getVal(n))
1010
#>> [b'S' b't' b'r' b'u' b'c' b't' b'u' b'r' b'e' b'd']

Cassiopee/Converter/test/newArbitraryGridMotionPT.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
#>> |_['ArbitraryGridMotion',array('DeformingGrid',dtype='|S1'),[0 son],'ArbitraryGridMotionType_t']
88

99
# Attach it to a parent node
10-
z = Internal.newZone('Zone', zsize=[[10],[2],[0]], ztype='Structured')
10+
z = Internal.newZone('Zone', zsize=[[10,9,0]], ztype='Structured')
1111
Internal.newArbitraryGridMotion(name='Motion', value='NonDeformingGrid', parent=z)

0 commit comments

Comments
 (0)