medcoupling 9.13.0__cp311-cp311-win_amd64.whl → 9.15.0__cp311-cp311-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
MEDLoaderSplitter.py CHANGED
@@ -1,5 +1,5 @@
1
1
  # -*- coding: iso-8859-1 -*-
2
- # Copyright (C) 2007-2024 CEA, EDF
2
+ # Copyright (C) 2007-2025 CEA, EDF
3
3
  #
4
4
  # This library is free software; you can redistribute it and/or
5
5
  # modify it under the terms of the GNU Lesser General Public
@@ -22,178 +22,219 @@
22
22
  from medcoupling import *
23
23
  import os
24
24
 
25
+
25
26
  class MEDLoaderSplitter:
26
27
  @classmethod
27
- def New(cls,mfd,idsLst):
28
- """ mfd is a MEDFileData instance containing only one mesh. idsLst is a list of DataArrayInt containing each the ids per processor """
29
- return MEDLoaderSplitter(mfd,idsLst)
28
+ def New(cls, mfd, idsLst):
29
+ """mfd is a MEDFileData instance containing only one mesh. idsLst is a list of DataArrayInt containing each the ids per processor"""
30
+ return MEDLoaderSplitter(mfd, idsLst)
30
31
  pass
31
32
 
32
- def __init__(self,mfd,idsLst):
33
- """ mfd is a MEDFileData instance containing only one mesh. idsLst is a list of DataArrayInt containing each the ids per processor """
34
- mfmsh=mfd.getMeshes()
35
- mfflds=mfd.getFields()
36
- if len(mfmsh)!=1:
33
+ def __init__(self, mfd, idsLst):
34
+ """mfd is a MEDFileData instance containing only one mesh. idsLst is a list of DataArrayInt containing each the ids per processor"""
35
+ mfmsh = mfd.getMeshes()
36
+ mfflds = mfd.getFields()
37
+ if len(mfmsh) != 1:
37
38
  raise InterpKernelException("Works only with one mesh !")
38
- mfflds=mfflds.partOfThisLyingOnSpecifiedMeshName(mfmsh[0].getName())
39
- retm=self.__splitMesh(mfmsh[0],idsLst)
40
- retf=self.__splitFields(mfmsh[0],retm,mfflds,idsLst)
41
- self._mfd_splitted=[MEDFileData() for i in range(len(idsLst))]
42
- for a,b,c in zip(self._mfd_splitted,retf,retm):
43
- a.setFields(b) ; a.setMeshes(c)
39
+ mfflds = mfflds.partOfThisLyingOnSpecifiedMeshName(mfmsh[0].getName())
40
+ retm = self.__splitMesh(mfmsh[0], idsLst)
41
+ retf = self.__splitFields(mfmsh[0], retm, mfflds, idsLst)
42
+ self._mfd_splitted = [MEDFileData() for i in range(len(idsLst))]
43
+ for a, b, c in zip(self._mfd_splitted, retf, retm):
44
+ a.setFields(b)
45
+ a.setMeshes(c)
44
46
  pass
45
47
  pass
46
48
 
47
49
  def getSplittedInstances(self):
48
50
  return self._mfd_splitted
49
-
51
+
50
52
  @classmethod
51
- def __splitMEDFileField1TSNodePfl(cls,mm,fieldName,pfl,ids,cache,procID):
53
+ def __splitMEDFileField1TSNodePfl(cls, mm, fieldName, pfl, ids, cache, procID):
52
54
  zeLev = None
53
55
  for lev in reversed(mm.getNonEmptyLevels()):
54
- cellIds = mm[lev].getCellIdsLyingOnNodes(pfl,True)
55
- if mm[lev][cellIds].computeFetchedNodeIds().isEqualWithoutConsideringStr(pfl):
56
+ cellIds = mm[lev].getCellIdsLyingOnNodes(pfl, True)
57
+ if (
58
+ mm[lev][cellIds]
59
+ .computeFetchedNodeIds()
60
+ .isEqualWithoutConsideringStr(pfl)
61
+ ):
56
62
  zeLev = lev
57
63
  break
58
- assert(zeLev is not None)
59
- cache[(fieldName,procID)]["zeLev"]=zeLev
64
+ assert zeLev is not None
65
+ cache[(fieldName, procID)]["zeLev"] = zeLev
60
66
  #
61
- m0Part=mm[0][ids]
62
- mLev=mm[zeLev]
67
+ m0Part = mm[0][ids]
68
+ mLev = mm[zeLev]
63
69
  #
64
- trado2n=m0Part.zipCoordsTraducer() # 3D part of nodes o2n
65
- trad=trado2n.invertArrayO2N2N2O(m0Part.getNumberOfNodes()) # 3D part of nodes n2o
66
- part=mLev.getCellIdsFullyIncludedInNodeIds(trad)
67
- mSubPart=mLev[part] # 2D part lying on 3D part
68
- mSubPartReducedNode=mSubPart.deepCopy() ; mSubPartReducedNode.renumberNodesInConn(trado2n) ; mSubPartReducedNode.setCoords(m0Part.getCoords()) # 2D part lying on 3D part node zipped
70
+ trado2n = m0Part.zipCoordsTraducer() # 3D part of nodes o2n
71
+ trad = trado2n.invertArrayO2N2N2O(
72
+ m0Part.getNumberOfNodes()
73
+ ) # 3D part of nodes n2o
74
+ part = mLev.getCellIdsFullyIncludedInNodeIds(trad)
75
+ mSubPart = mLev[part] # 2D part lying on 3D part
76
+ mSubPartReducedNode = mSubPart.deepCopy()
77
+ mSubPartReducedNode.renumberNodesInConn(trado2n)
78
+ mSubPartReducedNode.setCoords(
79
+ m0Part.getCoords()
80
+ ) # 2D part lying on 3D part node zipped
69
81
  #
70
- if mSubPart.getNumberOfCells()==0:
71
- cache[(fieldName,procID)]["res"] = None
72
- cache[(fieldName,procID)]["subProfileInProcReducedNode"] = None
82
+ if mSubPart.getNumberOfCells() == 0:
83
+ cache[(fieldName, procID)]["res"] = None
84
+ cache[(fieldName, procID)]["subProfileInProcReducedNode"] = None
73
85
  return
74
86
  cellsInSubPartFetchedByProfile = mSubPart.getCellIdsFullyIncludedInNodeIds(pfl)
75
- mSubPartFetchedByPfl=mSubPart[cellsInSubPartFetchedByProfile]
76
- subProfileInProc=mSubPartFetchedByPfl.computeFetchedNodeIds()
87
+ mSubPartFetchedByPfl = mSubPart[cellsInSubPartFetchedByProfile]
88
+ subProfileInProc = mSubPartFetchedByPfl.computeFetchedNodeIds()
77
89
  mSubPartFetchedByPfl.zipCoords()
78
90
  #
79
- res=pfl.findIdForEach(subProfileInProc)
80
- subProfileInProcReducedNode=subProfileInProc.deepCopy() ; subProfileInProcReducedNode.transformWithIndArr(trado2n)
91
+ res = pfl.findIdForEach(subProfileInProc)
92
+ subProfileInProcReducedNode = subProfileInProc.deepCopy()
93
+ subProfileInProcReducedNode.transformWithIndArr(trado2n)
81
94
  subProfileInProcReducedNode.setName(pfl.getName())
82
95
  #
83
- cache[(fieldName,procID)]["res"] = res
84
- cache[(fieldName,procID)]["subProfileInProcReducedNode"] = subProfileInProcReducedNode
96
+ cache[(fieldName, procID)]["res"] = res
97
+ cache[(fieldName, procID)]["subProfileInProcReducedNode"] = (
98
+ subProfileInProcReducedNode
99
+ )
85
100
  pass
86
101
 
87
-
88
102
  @classmethod
89
- def __splitMEDFileField1TSNode(cls,t,mm,mmOut,f1tsIn,f1tsOut,ids,cache,procID):
90
- if len(f1tsIn.getPflsReallyUsed())!=0:
91
- arr,pfl=f1tsIn.getFieldWithProfile(ON_NODES,0,mm)
103
+ def __splitMEDFileField1TSNode(
104
+ cls, t, mm, mmOut, f1tsIn, f1tsOut, ids, cache, procID
105
+ ):
106
+ if len(f1tsIn.getPflsReallyUsed()) != 0:
107
+ arr, pfl = f1tsIn.getFieldWithProfile(ON_NODES, 0, mm)
92
108
  #
93
- if (f1tsIn.getName(),procID) not in cache:
94
- cls.__splitMEDFileField1TSNodePfl(mm,f1tsIn.getName(),pfl,ids,cache,procID)
109
+ if (f1tsIn.getName(), procID) not in cache:
110
+ cls.__splitMEDFileField1TSNodePfl(
111
+ mm, f1tsIn.getName(), pfl, ids, cache, procID
112
+ )
95
113
  pass
96
- zeLev = cache[(f1tsIn.getName(),procID)]["zeLev"]
97
- res = cache[(f1tsIn.getName(),procID)]["res"]
98
- subProfileInProcReducedNode = cache[(f1tsIn.getName(),procID)]["subProfileInProcReducedNode"]
99
- if (zeLev is None) or (res is None) or (subProfileInProcReducedNode is None):
114
+ zeLev = cache[(f1tsIn.getName(), procID)]["zeLev"]
115
+ res = cache[(f1tsIn.getName(), procID)]["res"]
116
+ subProfileInProcReducedNode = cache[(f1tsIn.getName(), procID)][
117
+ "subProfileInProcReducedNode"
118
+ ]
119
+ if (
120
+ (zeLev is None)
121
+ or (res is None)
122
+ or (subProfileInProcReducedNode is None)
123
+ ):
100
124
  return
101
- if len(res)>0:
102
- fRes=MEDCouplingFieldDouble(ON_NODES)
125
+ if len(res) > 0:
126
+ fRes = MEDCouplingFieldDouble(ON_NODES)
103
127
  fRes.setArray(arr[res])
104
128
  fRes.setName(f1tsIn.getName())
105
- #fRes.setMesh(mSubPartFetchedByPfl)
106
- #fRes.copyAllTinyAttrFrom(f_medcoupling)
107
- a,b,c=f1tsIn.getTime(); fRes.setTime(c,a,b)
108
- f1tsOut.setFieldProfile(fRes,mmOut,zeLev,subProfileInProcReducedNode)
129
+ # fRes.setMesh(mSubPartFetchedByPfl)
130
+ # fRes.copyAllTinyAttrFrom(f_medcoupling)
131
+ a, b, c = f1tsIn.getTime()
132
+ fRes.setTime(c, a, b)
133
+ f1tsOut.setFieldProfile(fRes, mmOut, zeLev, subProfileInProcReducedNode)
109
134
  pass
110
- #raise RuntimeError("Field \"%s\" contains profiles ! Not supported yet ! This field will be ignored !" % (f1tsIn.getName()))
135
+ # raise RuntimeError("Field \"%s\" contains profiles ! Not supported yet ! This field will be ignored !" % (f1tsIn.getName()))
111
136
  else:
112
- f=f1tsIn.getFieldOnMeshAtLevel(t,0,mm)
113
- fRet=f[ids]
137
+ f = f1tsIn.getFieldOnMeshAtLevel(t, 0, mm)
138
+ fRet = f[ids]
114
139
  f1tsOut.setFieldNoProfileSBT(fRet)
115
140
  pass
116
141
  pass
117
-
142
+
118
143
  @classmethod
119
- def __splitMEDFileField1TSCell(cls,t,mm,mmOut,f1tsIn,f1tsOut,ids,cache,procID):
120
- f=f1tsIn.getFieldOnMeshAtLevel(t,0,mm)
121
- fRet=f[ids]
122
- m=fRet.getMesh() ; m.zipCoords()
123
- o2n=m.getRenumArrForMEDFileFrmt() ; fRet.renumberCells(o2n,False)
144
+ def __splitMEDFileField1TSCell(
145
+ cls, t, mm, mmOut, f1tsIn, f1tsOut, ids, cache, procID
146
+ ):
147
+ f = f1tsIn.getFieldOnMeshAtLevel(t, 0, mm)
148
+ fRet = f[ids]
149
+ m = fRet.getMesh()
150
+ m.zipCoords()
151
+ o2n = m.getRenumArrForMEDFileFrmt()
152
+ fRet.renumberCells(o2n, False)
124
153
  f1tsOut.setFieldNoProfileSBT(fRet)
125
154
  pass
126
-
127
- def __splitMEDFileField1TS(self,mm,mmOutList,f1ts,idsLst,cache):
155
+
156
+ def __splitMEDFileField1TS(self, mm, mmOutList, f1ts, idsLst, cache):
128
157
  """
129
- Split input f1ts into parts defined by idsLst.
158
+ Split input f1ts into parts defined by idsLst.
130
159
 
131
- :param mm: The underlying mesh of f1ts
132
- :param f1ts: The field to be split
133
- :param idsLst: For each proc the cell ids at level 0
134
- :return: A list of fields.
160
+ :param mm: The underlying mesh of f1ts
161
+ :param f1ts: The field to be split
162
+ :param idsLst: For each proc the cell ids at level 0
163
+ :return: A list of fields.
135
164
  """
136
- ret=[f1ts.__class__() for i in range(len(idsLst))]
137
- dico={ON_CELLS:MEDLoaderSplitter.__splitMEDFileField1TSCell,
138
- ON_NODES:MEDLoaderSplitter.__splitMEDFileField1TSNode,
139
- ON_GAUSS_PT:MEDLoaderSplitter.__splitMEDFileField1TSCell,
140
- ON_GAUSS_NE:MEDLoaderSplitter.__splitMEDFileField1TSCell}
165
+ ret = [f1ts.__class__() for i in range(len(idsLst))]
166
+ dico = {
167
+ ON_CELLS: MEDLoaderSplitter.__splitMEDFileField1TSCell,
168
+ ON_NODES: MEDLoaderSplitter.__splitMEDFileField1TSNode,
169
+ ON_GAUSS_PT: MEDLoaderSplitter.__splitMEDFileField1TSCell,
170
+ ON_GAUSS_NE: MEDLoaderSplitter.__splitMEDFileField1TSCell,
171
+ }
141
172
  for t in f1ts.getTypesOfFieldAvailable():
142
- for procID,f0 in enumerate(ret):
143
- dico[t](t,mm,mmOutList[procID][0],f1ts,f0,idsLst[procID],cache,procID)
173
+ for procID, f0 in enumerate(ret):
174
+ dico[t](
175
+ t, mm, mmOutList[procID][0], f1ts, f0, idsLst[procID], cache, procID
176
+ )
144
177
  pass
145
178
  pass
146
179
  return ret
147
-
148
- def __splitFields(self,mm,mmOutList,mfflds,idsLst):
180
+
181
+ def __splitFields(self, mm, mmOutList, mfflds, idsLst):
149
182
  ret0 = [MEDFileFields() for i in range(len(idsLst))]
150
183
  from collections import defaultdict
184
+
151
185
  cache = defaultdict(dict)
152
186
  for fmts in mfflds:
153
- ret1=[fmts.__class__() for i in range(len(idsLst))]
187
+ ret1 = [fmts.__class__() for i in range(len(idsLst))]
154
188
  for f1ts in fmts:
155
- for fmtsPart,f1tsPart in zip(ret1,self.__splitMEDFileField1TS(mm,mmOutList,f1ts,idsLst,cache)):
189
+ for fmtsPart, f1tsPart in zip(
190
+ ret1,
191
+ self.__splitMEDFileField1TS(mm, mmOutList, f1ts, idsLst, cache),
192
+ ):
156
193
  if f1tsPart.getUndergroundDataArray():
157
- if len(f1tsPart.getUndergroundDataArray())!=0 :
194
+ if len(f1tsPart.getUndergroundDataArray()) != 0:
158
195
  fmtsPart.pushBackTimeStep(f1tsPart)
159
196
  pass
160
197
  pass
161
- for fieldsPart,fmtsPart in zip(ret0,ret1):
162
- if len(fmtsPart) != 0 :
163
- fieldsPart.pushField(fmtsPart);
198
+ for fieldsPart, fmtsPart in zip(ret0, ret1):
199
+ if len(fmtsPart) != 0:
200
+ fieldsPart.pushField(fmtsPart)
164
201
  pass
165
202
  pass
166
203
  return ret0
167
204
 
168
- def __splitMesh(self,mfm,idsLst):
205
+ def __splitMesh(self, mfm, idsLst):
169
206
  ret0 = [MEDFileMeshes() for i in range(len(idsLst))]
170
- m=mfm[0]
171
- addlevs=list(mfm.getNonEmptyLevels())[1:]
172
- dAddlevs={k:mfm[k] for k in addlevs}
173
- for ret,ids in zip(ret0,idsLst):
174
- mlPart=mfm.createNewEmpty()
175
- mPart=m[ids] ; trado2n=mPart.zipCoordsTraducer()
176
- trad=trado2n.invertArrayO2N2N2O(mPart.getNumberOfNodes())
177
- mlPart[0]=mPart
207
+ m = mfm[0]
208
+ addlevs = list(mfm.getNonEmptyLevels())[1:]
209
+ dAddlevs = {k: mfm[k] for k in addlevs}
210
+ for ret, ids in zip(ret0, idsLst):
211
+ mlPart = mfm.createNewEmpty()
212
+ mPart = m[ids]
213
+ trado2n = mPart.zipCoordsTraducer()
214
+ trad = trado2n.invertArrayO2N2N2O(mPart.getNumberOfNodes())
215
+ mlPart[0] = mPart
178
216
  if 0 in mfm.getFamArrNonEmptyLevelsExt():
179
- mlPart.setFamilyFieldArr(0,mfm.getFamilyFieldAtLevel(0)[ids])
217
+ mlPart.setFamilyFieldArr(0, mfm.getFamilyFieldAtLevel(0)[ids])
180
218
  pass
181
219
  if 0 in mfm.getNameArrNonEmptyLevelsExt():
182
220
  mlPart.setNameFieldAtLevel(0, mfm.getNameFieldAtLevel(0)[ids])
183
221
  if 1 in mfm.getFamArrNonEmptyLevelsExt():
184
- mlPart.setFamilyFieldArr(1,mfm.getFamilyFieldAtLevel(1)[trad])
222
+ mlPart.setFamilyFieldArr(1, mfm.getFamilyFieldAtLevel(1)[trad])
185
223
  pass
186
224
  if 1 in mfm.getNameArrNonEmptyLevelsExt():
187
225
  mlPart.setNameFieldAtLevel(1, mfm.getNameFieldAtLevel(1)[trad])
188
- for k,v in dAddlevs.items():
189
- part=v.getCellIdsFullyIncludedInNodeIds(trad)
190
- mSubPart=v[part] ; mSubPart.renumberNodesInConn(trado2n) ; mSubPart.setCoords(mPart.getCoords())
191
- mlPart[k]=mSubPart
192
- mlPart.setFamilyFieldArr(k,mfm.getFamilyFieldAtLevel(k)[part])
226
+ for k, v in dAddlevs.items():
227
+ part = v.getCellIdsFullyIncludedInNodeIds(trad)
228
+ mSubPart = v[part]
229
+ mSubPart.renumberNodesInConn(trado2n)
230
+ mSubPart.setCoords(mPart.getCoords())
231
+ mlPart[k] = mSubPart
232
+ mlPart.setFamilyFieldArr(k, mfm.getFamilyFieldAtLevel(k)[part])
193
233
  if k in mfm.getNameArrNonEmptyLevelsExt():
194
234
  mlPart.setNameFieldAtLevel(k, mfm.getNameFieldAtLevel(k)[part])
195
235
  mlPart.copyFamGrpMapsFrom(mfm)
196
236
  ret.pushMesh(mlPart)
197
237
  pass
198
238
  return ret0
239
+
199
240
  pass
MEDRenumber.py CHANGED
@@ -1625,6 +1625,21 @@ class DataArrayFloat(DataArray):
1625
1625
  """
1626
1626
  return _MEDRenumber.DataArrayFloat_Meld(a1, a2)
1627
1627
 
1628
+ @staticmethod
1629
+ def LoadForDbg(fileName):
1630
+ r"""
1631
+ LoadForDbg(std::string const & fileName) -> MCAuto< MEDCoupling::DataArrayFloat >
1632
+ 1
1633
+ """
1634
+ return _MEDRenumber.DataArrayFloat_LoadForDbg(fileName)
1635
+
1636
+ def writeForDbg(self, fileName):
1637
+ r"""
1638
+ writeForDbg(DataArrayFloat self, std::string const & fileName)
1639
+ 1
1640
+ """
1641
+ return _MEDRenumber.DataArrayFloat_writeForDbg(self, fileName)
1642
+
1628
1643
  @staticmethod
1629
1644
  def New(*args):
1630
1645
  r"""
@@ -2036,6 +2051,13 @@ class DataArrayDouble(DataArray):
2036
2051
  """
2037
2052
  return _MEDRenumber.DataArrayDouble_duplicateEachTupleNTimes(self, nbTimes)
2038
2053
 
2054
+ def duplicateNTimes(self, nbTimes):
2055
+ r"""
2056
+ duplicateNTimes(DataArrayDouble self, mcIdType nbTimes) -> MCAuto< MEDCoupling::DataArrayDouble >
2057
+ 1
2058
+ """
2059
+ return _MEDRenumber.DataArrayDouble_duplicateNTimes(self, nbTimes)
2060
+
2039
2061
  def getDifferentValues(self, prec, limitTupleId=-1):
2040
2062
  r"""
2041
2063
  getDifferentValues(DataArrayDouble self, double prec, int limitTupleId=-1) -> DataArrayDouble
@@ -2636,6 +2658,21 @@ class DataArrayDouble(DataArray):
2636
2658
  """
2637
2659
  return _MEDRenumber.DataArrayDouble_convertToFloatArr(self)
2638
2660
 
2661
+ @staticmethod
2662
+ def LoadForDbg(fileName):
2663
+ r"""
2664
+ LoadForDbg(std::string const & fileName) -> MCAuto< MEDCoupling::DataArrayDouble >
2665
+ 1
2666
+ """
2667
+ return _MEDRenumber.DataArrayDouble_LoadForDbg(fileName)
2668
+
2669
+ def writeForDbg(self, fileName):
2670
+ r"""
2671
+ writeForDbg(DataArrayDouble self, std::string const & fileName)
2672
+ 1
2673
+ """
2674
+ return _MEDRenumber.DataArrayDouble_writeForDbg(self, fileName)
2675
+
2639
2676
  @staticmethod
2640
2677
  def New(*args):
2641
2678
  r"""
@@ -3529,6 +3566,14 @@ class DataArrayByte(DataArrayChar):
3529
3566
  """
3530
3567
  return _MEDRenumber.DataArrayByte_byteValue(self)
3531
3568
 
3569
+ @staticmethod
3570
+ def LoadForDbg(fileName):
3571
+ r"""
3572
+ LoadForDbg(std::string const & fileName) -> MCAuto< MEDCoupling::DataArrayByte >
3573
+ 1
3574
+ """
3575
+ return _MEDRenumber.DataArrayByte_LoadForDbg(fileName)
3576
+
3532
3577
  @staticmethod
3533
3578
  def New(*args):
3534
3579
  r"""
@@ -4493,6 +4538,13 @@ class DataArrayInt32(DataArray):
4493
4538
  """
4494
4539
  return _MEDRenumber.DataArrayInt32_abs(self)
4495
4540
 
4541
+ def sortPerTuple(self, asc):
4542
+ r"""
4543
+ sortPerTuple(DataArrayInt32 self, bool asc)
4544
+ 1
4545
+ """
4546
+ return _MEDRenumber.DataArrayInt32_sortPerTuple(self, asc)
4547
+
4496
4548
  def computeAbs(self):
4497
4549
  r"""
4498
4550
  computeAbs(DataArrayInt32 self) -> DataArrayInt32
@@ -4720,6 +4772,13 @@ class DataArrayInt32(DataArray):
4720
4772
  """
4721
4773
  return _MEDRenumber.DataArrayInt32_duplicateEachTupleNTimes(self, nbTimes)
4722
4774
 
4775
+ def duplicateNTimes(self, nbTimes):
4776
+ r"""
4777
+ duplicateNTimes(DataArrayInt32 self, mcIdType nbTimes) -> MCAuto< MEDCoupling::DataArrayInt32 >
4778
+ 1
4779
+ """
4780
+ return _MEDRenumber.DataArrayInt32_duplicateNTimes(self, nbTimes)
4781
+
4723
4782
  def getDifferentValues(self):
4724
4783
  r"""
4725
4784
  getDifferentValues(DataArrayInt32 self) -> DataArrayInt32
@@ -4817,6 +4876,21 @@ class DataArrayInt32(DataArray):
4817
4876
  """
4818
4877
  return _MEDRenumber.DataArrayInt32_powEqual(self, other)
4819
4878
 
4879
+ @staticmethod
4880
+ def LoadForDbg(fileName):
4881
+ r"""
4882
+ LoadForDbg(std::string const & fileName) -> MCAuto< MEDCoupling::DataArrayInt32 >
4883
+ 1
4884
+ """
4885
+ return _MEDRenumber.DataArrayInt32_LoadForDbg(fileName)
4886
+
4887
+ def writeForDbg(self, fileName):
4888
+ r"""
4889
+ writeForDbg(DataArrayInt32 self, std::string const & fileName)
4890
+ 1
4891
+ """
4892
+ return _MEDRenumber.DataArrayInt32_writeForDbg(self, fileName)
4893
+
4820
4894
  def fromLinkedListOfPairToList(self):
4821
4895
  r"""
4822
4896
  fromLinkedListOfPairToList(DataArrayInt32 self) -> MCAuto< MEDCoupling::DataArrayInt32 >
@@ -5368,6 +5442,20 @@ class DataArrayInt32(DataArray):
5368
5442
  """
5369
5443
  return _MEDRenumber.DataArrayInt32_findIdsRangesInListOfIds(self, listOfIds)
5370
5444
 
5445
+ def forThisAsPartitionBuildReduction(self, commonEntities, commonEntitiesIndex):
5446
+ r"""
5447
+ forThisAsPartitionBuildReduction(DataArrayInt32 self, DataArrayInt32 commonEntities, DataArrayInt32 commonEntitiesIndex) -> PyObject *
5448
+ 1
5449
+ """
5450
+ return _MEDRenumber.DataArrayInt32_forThisAsPartitionBuildReduction(self, commonEntities, commonEntitiesIndex)
5451
+
5452
+ def fromListOfPairsToIndexArray(self):
5453
+ r"""
5454
+ fromListOfPairsToIndexArray(DataArrayInt32 self) -> PyObject *
5455
+ 1
5456
+ """
5457
+ return _MEDRenumber.DataArrayInt32_fromListOfPairsToIndexArray(self)
5458
+
5371
5459
  def isRange(self):
5372
5460
  r"""
5373
5461
  isRange(DataArrayInt32 self) -> PyObject *
@@ -5383,6 +5471,13 @@ class DataArrayInt32(DataArray):
5383
5471
  """
5384
5472
  return _MEDRenumber.DataArrayInt32_RemoveIdsFromIndexedArrays(li, arr, arrIndx, offsetForRemoval)
5385
5473
 
5474
+ def findCommonTuples(self, limitNodeId=-1):
5475
+ r"""
5476
+ findCommonTuples(DataArrayInt32 self, mcIdType limitNodeId=-1) -> PyObject
5477
+ 1
5478
+ """
5479
+ return _MEDRenumber.DataArrayInt32_findCommonTuples(self, limitNodeId)
5480
+
5386
5481
  @staticmethod
5387
5482
  def ExtractFromIndexedArrays(li, arrIn, arrIndxIn):
5388
5483
  r"""
@@ -5408,6 +5503,30 @@ class DataArrayInt32(DataArray):
5408
5503
  """
5409
5504
  return _MEDRenumber.DataArrayInt32_SetPartOfIndexedArrays(li, arrIn, arrIndxIn, srcArr, srcArrIndex)
5410
5505
 
5506
+ @staticmethod
5507
+ def FromVTKInternalReprOfPolyedra(arrIn, arrIndxIn):
5508
+ r"""
5509
+ FromVTKInternalReprOfPolyedra(DataArrayInt32 arrIn, DataArrayInt32 arrIndxIn) -> PyObject *
5510
+ 1
5511
+ """
5512
+ return _MEDRenumber.DataArrayInt32_FromVTKInternalReprOfPolyedra(arrIn, arrIndxIn)
5513
+
5514
+ @staticmethod
5515
+ def FromVTK94InternalReprOfPolyedra(arrIn, arrIndxIn, arrIndxIn2):
5516
+ r"""
5517
+ FromVTK94InternalReprOfPolyedra(DataArrayInt32 arrIn, DataArrayInt32 arrIndxIn, DataArrayInt32 arrIndxIn2) -> PyObject *
5518
+ 1
5519
+ """
5520
+ return _MEDRenumber.DataArrayInt32_FromVTK94InternalReprOfPolyedra(arrIn, arrIndxIn, arrIndxIn2)
5521
+
5522
+ @staticmethod
5523
+ def FromVTK93To94FacesInternaReprOfPolyedra(arrIn, arrIndxIn):
5524
+ r"""
5525
+ FromVTK93To94FacesInternaReprOfPolyedra(DataArrayInt32 arrIn, DataArrayInt32 arrIndxIn) -> PyObject *
5526
+ 1
5527
+ """
5528
+ return _MEDRenumber.DataArrayInt32_FromVTK93To94FacesInternaReprOfPolyedra(arrIn, arrIndxIn)
5529
+
5411
5530
  @staticmethod
5412
5531
  def SetPartOfIndexedArraysSameIdx(li, arrIn, arrIndxIn, srcArr, srcArrIndex):
5413
5532
  r"""
@@ -6092,6 +6211,13 @@ class DataArrayInt64(DataArray):
6092
6211
  """
6093
6212
  return _MEDRenumber.DataArrayInt64_abs(self)
6094
6213
 
6214
+ def sortPerTuple(self, asc):
6215
+ r"""
6216
+ sortPerTuple(DataArrayInt64 self, bool asc)
6217
+ 1
6218
+ """
6219
+ return _MEDRenumber.DataArrayInt64_sortPerTuple(self, asc)
6220
+
6095
6221
  def computeAbs(self):
6096
6222
  r"""
6097
6223
  computeAbs(DataArrayInt64 self) -> DataArrayInt64
@@ -6319,6 +6445,13 @@ class DataArrayInt64(DataArray):
6319
6445
  """
6320
6446
  return _MEDRenumber.DataArrayInt64_duplicateEachTupleNTimes(self, nbTimes)
6321
6447
 
6448
+ def duplicateNTimes(self, nbTimes):
6449
+ r"""
6450
+ duplicateNTimes(DataArrayInt64 self, mcIdType nbTimes) -> MCAuto< MEDCoupling::DataArrayInt64 >
6451
+ 1
6452
+ """
6453
+ return _MEDRenumber.DataArrayInt64_duplicateNTimes(self, nbTimes)
6454
+
6322
6455
  def getDifferentValues(self):
6323
6456
  r"""
6324
6457
  getDifferentValues(DataArrayInt64 self) -> DataArrayInt64
@@ -6416,6 +6549,21 @@ class DataArrayInt64(DataArray):
6416
6549
  """
6417
6550
  return _MEDRenumber.DataArrayInt64_powEqual(self, other)
6418
6551
 
6552
+ @staticmethod
6553
+ def LoadForDbg(fileName):
6554
+ r"""
6555
+ LoadForDbg(std::string const & fileName) -> MCAuto< MEDCoupling::DataArrayInt64 >
6556
+ 1
6557
+ """
6558
+ return _MEDRenumber.DataArrayInt64_LoadForDbg(fileName)
6559
+
6560
+ def writeForDbg(self, fileName):
6561
+ r"""
6562
+ writeForDbg(DataArrayInt64 self, std::string const & fileName)
6563
+ 1
6564
+ """
6565
+ return _MEDRenumber.DataArrayInt64_writeForDbg(self, fileName)
6566
+
6419
6567
  def fromLinkedListOfPairToList(self):
6420
6568
  r"""
6421
6569
  fromLinkedListOfPairToList(DataArrayInt64 self) -> MCAuto< MEDCoupling::DataArrayInt64 >
@@ -6967,6 +7115,20 @@ class DataArrayInt64(DataArray):
6967
7115
  """
6968
7116
  return _MEDRenumber.DataArrayInt64_findIdsRangesInListOfIds(self, listOfIds)
6969
7117
 
7118
+ def forThisAsPartitionBuildReduction(self, commonEntities, commonEntitiesIndex):
7119
+ r"""
7120
+ forThisAsPartitionBuildReduction(DataArrayInt64 self, DataArrayInt32 commonEntities, DataArrayInt32 commonEntitiesIndex) -> PyObject *
7121
+ 1
7122
+ """
7123
+ return _MEDRenumber.DataArrayInt64_forThisAsPartitionBuildReduction(self, commonEntities, commonEntitiesIndex)
7124
+
7125
+ def fromListOfPairsToIndexArray(self):
7126
+ r"""
7127
+ fromListOfPairsToIndexArray(DataArrayInt64 self) -> PyObject *
7128
+ 1
7129
+ """
7130
+ return _MEDRenumber.DataArrayInt64_fromListOfPairsToIndexArray(self)
7131
+
6970
7132
  def isRange(self):
6971
7133
  r"""
6972
7134
  isRange(DataArrayInt64 self) -> PyObject *
@@ -6982,6 +7144,13 @@ class DataArrayInt64(DataArray):
6982
7144
  """
6983
7145
  return _MEDRenumber.DataArrayInt64_RemoveIdsFromIndexedArrays(li, arr, arrIndx, offsetForRemoval)
6984
7146
 
7147
+ def findCommonTuples(self, limitNodeId=-1):
7148
+ r"""
7149
+ findCommonTuples(DataArrayInt64 self, mcIdType limitNodeId=-1) -> PyObject
7150
+ 1
7151
+ """
7152
+ return _MEDRenumber.DataArrayInt64_findCommonTuples(self, limitNodeId)
7153
+
6985
7154
  @staticmethod
6986
7155
  def ExtractFromIndexedArrays(li, arrIn, arrIndxIn):
6987
7156
  r"""
@@ -7007,6 +7176,30 @@ class DataArrayInt64(DataArray):
7007
7176
  """
7008
7177
  return _MEDRenumber.DataArrayInt64_SetPartOfIndexedArrays(li, arrIn, arrIndxIn, srcArr, srcArrIndex)
7009
7178
 
7179
+ @staticmethod
7180
+ def FromVTKInternalReprOfPolyedra(arrIn, arrIndxIn):
7181
+ r"""
7182
+ FromVTKInternalReprOfPolyedra(DataArrayInt64 arrIn, DataArrayInt32 arrIndxIn) -> PyObject *
7183
+ 1
7184
+ """
7185
+ return _MEDRenumber.DataArrayInt64_FromVTKInternalReprOfPolyedra(arrIn, arrIndxIn)
7186
+
7187
+ @staticmethod
7188
+ def FromVTK94InternalReprOfPolyedra(arrIn, arrIndxIn, arrIndxIn2):
7189
+ r"""
7190
+ FromVTK94InternalReprOfPolyedra(DataArrayInt64 arrIn, DataArrayInt32 arrIndxIn, DataArrayInt32 arrIndxIn2) -> PyObject *
7191
+ 1
7192
+ """
7193
+ return _MEDRenumber.DataArrayInt64_FromVTK94InternalReprOfPolyedra(arrIn, arrIndxIn, arrIndxIn2)
7194
+
7195
+ @staticmethod
7196
+ def FromVTK93To94FacesInternaReprOfPolyedra(arrIn, arrIndxIn):
7197
+ r"""
7198
+ FromVTK93To94FacesInternaReprOfPolyedra(DataArrayInt64 arrIn, DataArrayInt32 arrIndxIn) -> PyObject *
7199
+ 1
7200
+ """
7201
+ return _MEDRenumber.DataArrayInt64_FromVTK93To94FacesInternaReprOfPolyedra(arrIn, arrIndxIn)
7202
+
7010
7203
  @staticmethod
7011
7204
  def SetPartOfIndexedArraysSameIdx(li, arrIn, arrIndxIn, srcArr, srcArrIndex):
7012
7205
  r"""
@@ -9089,6 +9282,13 @@ class MEDCouplingFieldDiscretizationOnNodesFE(MEDCouplingFieldDiscretizationOnNo
9089
9282
  1
9090
9283
  """
9091
9284
  return _MEDRenumber.MEDCouplingFieldDiscretizationOnNodesFE_getCooInRefElement(self, mesh, locs)
9285
+
9286
+ def getClosestCooInRefElement(self, mesh, locs):
9287
+ r"""
9288
+ getClosestCooInRefElement(MEDCouplingFieldDiscretizationOnNodesFE self, MEDCouplingMesh mesh, PyObject * locs) -> DataArrayDouble
9289
+ 1
9290
+ """
9291
+ return _MEDRenumber.MEDCouplingFieldDiscretizationOnNodesFE_getClosestCooInRefElement(self, mesh, locs)
9092
9292
  __swig_destroy__ = _MEDRenumber.delete_MEDCouplingFieldDiscretizationOnNodesFE
9093
9293
 
9094
9294
  # Register MEDCouplingFieldDiscretizationOnNodesFE in _MEDRenumber:
@@ -10049,6 +10249,13 @@ class MEDCouplingUMesh(MEDCouplingPointSet):
10049
10249
  """
10050
10250
  return _MEDRenumber.MEDCouplingUMesh_changeOrientationOfCells(self)
10051
10251
 
10252
+ def orientCorrectly3DCells(self):
10253
+ r"""
10254
+ orientCorrectly3DCells(MEDCouplingUMesh self)
10255
+ 1
10256
+ """
10257
+ return _MEDRenumber.MEDCouplingUMesh_orientCorrectly3DCells(self)
10258
+
10052
10259
  def computeCellCenterOfMassWithPrecision(self, eps):
10053
10260
  r"""
10054
10261
  computeCellCenterOfMassWithPrecision(MEDCouplingUMesh self, double eps) -> DataArrayDouble
@@ -10124,6 +10331,20 @@ class MEDCouplingUMesh(MEDCouplingPointSet):
10124
10331
  """
10125
10332
  return _MEDRenumber.MEDCouplingUMesh_Build1DMeshFromCoords(da)
10126
10333
 
10334
+ def convertToQuadraticBasedOnSeg3(self, seg3):
10335
+ r"""
10336
+ convertToQuadraticBasedOnSeg3(MEDCouplingUMesh self, MEDCoupling1SGTUMesh * seg3) -> MEDCouplingUMesh
10337
+ 1
10338
+ """
10339
+ return _MEDRenumber.MEDCouplingUMesh_convertToQuadraticBasedOnSeg3(self, seg3)
10340
+
10341
+ def extrudeConnectivity(self, nbOfCellsToExtrude):
10342
+ r"""
10343
+ extrudeConnectivity(MEDCouplingUMesh self, mcIdType nbOfCellsToExtrude) -> MEDCouplingUMesh
10344
+ 1
10345
+ """
10346
+ return _MEDRenumber.MEDCouplingUMesh_extrudeConnectivity(self, nbOfCellsToExtrude)
10347
+
10127
10348
  def getAllGeoTypesSorted(self):
10128
10349
  r"""
10129
10350
  getAllGeoTypesSorted(MEDCouplingUMesh self) -> PyObject *