Skip to content

Commit 8fb6cc4

Browse files
committed
Converter: corr. bug bintp
1 parent 6cf4239 commit 8fb6cc4

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

Cassiopee/CPlot/CPlot/Tk.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ def defineFonts(FONTTYPE, FONTSIZE):
168168
('converter', '*.dat'),
169169
('converter', '*.fv3d'),
170170
('converter', '*.grid'),
171+
('converter', '*.cdf'),
171172
('converter', '*.h5'),
172173
('converter', '*.hdf'),
173174
('converter', '*.hdf5'),
@@ -211,6 +212,8 @@ def defineFonts(FONTTYPE, FONTSIZE):
211212
('fmt v3d', '*.fv3d'),
212213
('fmt tau', '*.grid'),
213214
('fmt tau', '*.GRID'),
215+
('fmt tau', '*.cdf'),
216+
('fmt tau', '*.CDF'),
214217
('fmt fsdm', '*.h5'),
215218
('fmt fsdm', '*.H5'),
216219
('All files', '*')

Cassiopee/Converter/Converter/Converter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,7 @@ def convertExt2Format__(fileName):
740740
'.hdf': 'bin_hdf',
741741
'.mod': 'bin_hdf',
742742
'.grid': 'bin_tau',
743+
'.cdf': 'bin_tau',
743744
'.h5': 'bin_fsdm',
744745
'.pickle': 'bin_pickle',
745746
'.df3': 'bin_df3',

Cassiopee/Converter/Converter/Internal.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3041,21 +3041,21 @@ def createZoneNode(name, array, array2=[],
30413041
if createFlow:
30423042
vars = array[0].split(',')
30433043
info.append([FlowSolutionNodes, None, [], 'FlowSolution_t'])
3044-
info = info[len(info)-1]
3044+
info2 = info[len(info)-1]
30453045
for i in range(nvar):
30463046
if i != px and i != py and i != pz:
30473047
node = createDataNode(vars[i], array, i, cellDim)
3048-
info[2].append(node)
3048+
info2[2].append(node)
30493049
if array2 != []:
30503050
if isinstance(array2[1], list): nvar = len(array2[1])
30513051
else: nvar = array2[1].shape[0]
30523052
vars = array2[0].split(',')
30533053
info.append([FlowSolutionCenters, None, [], 'FlowSolution_t'])
3054-
info = info[len(info)-1]
3054+
info2 = info[len(info)-1]
30553055
_createChild(info, 'GridLocation', 'GridLocation_t', value='CellCenter')
30563056
for i in range(nvar):
30573057
node = createDataNode(vars[i], array2, i, cellDim)
3058-
info[2].append(node)
3058+
info2[2].append(node)
30593059
return zone
30603060

30613061
# -- convert a data node to an array (array1)

0 commit comments

Comments
 (0)