1 // Copyright (C) 2017-2024 CEA, EDF
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // Author : Anthony Geay (EDF R&D)
24 #define MEDCOUPLINGREMAPPER_EXPORT
25 #define INTERPKERNEL_EXPORT
26 #define MEDCOUPLING_EXPORT
27 #define MEDLOADER_EXPORT
29 %include "MEDCouplingCommon.i"
31 %include "MEDCouplingRemapperCommon.i"
33 %include "ICoCoMEDField.i"
36 %include "MEDLoaderCommon.i"
40 %include "MEDRenumberImpl.i"
43 #ifdef WITH_PARTITIONER
44 %include "MEDPartitionerCommon.i"
47 #ifdef WITH_PARALLEL_INTERPOLATOR
48 %include "ParaMEDMEMCommon.i"
51 #ifdef WITH_SHAPE_RECOGN
52 %include "ShapeRecognCommon.i"
55 %constant const char __version__[]=MEDCOUPLING_GIT_SHA1;
56 %constant const char __config_datetime__[]=MEDCOUPLING_CONFIG_DT;
59 static const char SEQ_INTERPOL_EXT[]="Sequential interpolator";
60 static const char MEDFILEIO_EXT[]="MED file I/O";
61 static const char RENUM_EXT[]="Renumberer";
62 static const char PART_EXT[]="Partitioner";
63 static const char PAR_INTERPOL_EXT[]="Parallel interpolator (SPMD paradigm)";
64 static const char IT_STATS_EXT[]="Iterative statistics";
65 static const char SHAPE_RECOGNITION_EXT[]="Shape Recognition";
67 static const char *EXTENSIONS[]={SEQ_INTERPOL_EXT,MEDFILEIO_EXT,RENUM_EXT,PART_EXT,PAR_INTERPOL_EXT,IT_STATS_EXT,SHAPE_RECOGNITION_EXT};
68 static const int NB_OF_EXTENSIONS=sizeof(EXTENSIONS)/sizeof(const char *);
73 std::vector<std::string> AllPossibleExtensions()
75 std::vector<std::string> ret(EXTENSIONS,EXTENSIONS+NB_OF_EXTENSIONS);
97 bool HasPartitionerExt()
99 #ifdef WITH_PARTITIONER
106 bool HasScotchPartitionerAlg()
108 #ifdef WITH_PARTITIONER
109 return MEDPartitioner::HasScotchAlg();
115 bool HasPTScotchPartitionerAlg()
117 #ifdef WITH_PARTITIONER
118 return MEDPartitioner::HasPTScotchAlg();
124 bool HasMetisPartitionerAlg()
126 #ifdef WITH_PARTITIONER
127 return MEDPartitioner::HasMetisAlg();
133 bool HasParallelInterpolatorExt()
135 #ifdef WITH_PARALLEL_INTERPOLATOR
142 bool HasIterativeStatisticsExt()
144 #ifdef WITH_ITERATIVE_STATISTICS
151 bool HasShapeRecognitionExt()
153 #ifdef WITH_SHAPE_RECOGN
160 std::vector<std::string> ActiveExtensions()
162 std::vector<std::string> ret;
163 ret.push_back(std::string(SEQ_INTERPOL_EXT));
165 ret.push_back(std::string(MEDFILEIO_EXT));
168 ret.push_back(std::string(RENUM_EXT));
170 #ifdef WITH_PARTITIONER
171 ret.push_back(std::string(PART_EXT));
173 #ifdef WITH_PARALLEL_INTERPOLATOR
174 ret.push_back(std::string(PAR_INTERPOL_EXT));
176 #ifdef WITH_ITERATIVE_STATISTICS
177 ret.push_back(std::string(IT_STATS_EXT));
179 #ifdef WITH_SHAPE_RECOGN
180 ret.push_back(std::string(SHAPE_RECOGNITION_EXT));
187 def MEDCouplingDataArrayDoubleIadd(self,*args):
189 return _medcoupling.DataArrayDouble____iadd___(self, self, *args)
190 def MEDCouplingDataArrayDoubleIsub(self,*args):
192 return _medcoupling.DataArrayDouble____isub___(self, self, *args)
193 def MEDCouplingDataArrayDoubleImul(self,*args):
195 return _medcoupling.DataArrayDouble____imul___(self, self, *args)
196 def MEDCouplingDataArrayDoubleIdiv(self,*args):
198 return _medcoupling.DataArrayDouble____idiv___(self, self, *args)
199 def MEDCouplingDataArrayDoubleIpow(self,*args):
201 return _medcoupling.DataArrayDouble____ipow___(self, self, *args)
202 def MEDCouplingFieldDoubleIadd(self,*args):
204 return _medcoupling.MEDCouplingFieldDouble____iadd___(self, self, *args)
205 def MEDCouplingFieldDoubleIsub(self,*args):
207 return _medcoupling.MEDCouplingFieldDouble____isub___(self, self, *args)
208 def MEDCouplingFieldDoubleImul(self,*args):
210 return _medcoupling.MEDCouplingFieldDouble____imul___(self, self, *args)
211 def MEDCouplingFieldDoubleIdiv(self,*args):
213 return _medcoupling.MEDCouplingFieldDouble____idiv___(self, self, *args)
214 def MEDCouplingFieldDoubleIpow(self,*args):
216 return _medcoupling.MEDCouplingFieldDouble____ipow___(self, self, *args)
217 def MEDCouplingDataArrayInt32Iadd(self,*args):
219 return _medcoupling.DataArrayInt32____iadd___(self, self, *args)
220 def MEDCouplingDataArrayInt32Isub(self,*args):
222 return _medcoupling.DataArrayInt32____isub___(self, self, *args)
223 def MEDCouplingDataArrayInt32Imul(self,*args):
225 return _medcoupling.DataArrayInt32____imul___(self, self, *args)
226 def MEDCouplingDataArrayInt32Idiv(self,*args):
228 return _medcoupling.DataArrayInt32____idiv___(self, self, *args)
229 def MEDCouplingDataArrayInt32Imod(self,*args):
231 return _medcoupling.DataArrayInt32____imod___(self, self, *args)
232 def MEDCouplingDataArrayInt32Ipow(self,*args):
234 return _medcoupling.DataArrayInt32____ipow___(self, self, *args)
235 def MEDCouplingDataArrayInt64Iadd(self,*args):
237 return _medcoupling.DataArrayInt64____iadd___(self, self, *args)
238 def MEDCouplingDataArrayInt64Isub(self,*args):
240 return _medcoupling.DataArrayInt64____isub___(self, self, *args)
241 def MEDCouplingDataArrayInt64Imul(self,*args):
243 return _medcoupling.DataArrayInt64____imul___(self, self, *args)
244 def MEDCouplingDataArrayInt64Idiv(self,*args):
246 return _medcoupling.DataArrayInt64____idiv___(self, self, *args)
247 def MEDCouplingDataArrayInt64Imod(self,*args):
249 return _medcoupling.DataArrayInt64____imod___(self, self, *args)
250 def MEDCouplingDataArrayInt64Ipow(self,*args):
252 return _medcoupling.DataArrayInt64____ipow___(self, self, *args)
253 def MEDCouplingDataArrayFloatIadd(self,*args):
255 return _medcoupling.DataArrayFloat____iadd___(self, self, *args)
256 def MEDCouplingDataArrayFloatIsub(self,*args):
258 return _medcoupling.DataArrayFloat____isub___(self, self, *args)
259 def MEDCouplingDataArrayFloatImul(self,*args):
261 return _medcoupling.DataArrayFloat____imul___(self, self, *args)
262 def MEDCouplingDataArrayFloatIdiv(self,*args):
264 return _medcoupling.DataArrayFloat____idiv___(self, self, *args)
265 def MEDCouplingDataArrayDoubleTupleIadd(self,*args):
267 return _medcoupling.DataArrayDoubleTuple____iadd___(self, self, *args)
268 def MEDCouplingDataArrayDoubleTupleIsub(self,*args):
270 return _medcoupling.DataArrayDoubleTuple____isub___(self, self, *args)
271 def MEDCouplingDataArrayDoubleTupleImul(self,*args):
273 return _medcoupling.DataArrayDoubleTuple____imul___(self, self, *args)
274 def MEDCouplingDataArrayDoubleTupleIdiv(self,*args):
276 return _medcoupling.DataArrayDoubleTuple____idiv___(self, self, *args)
277 def MEDCouplingDataArrayInt32TupleIadd(self,*args):
279 return _medcoupling.DataArrayInt32Tuple____iadd___(self, self, *args)
280 def MEDCouplingDataArrayInt32TupleIsub(self,*args):
282 return _medcoupling.DataArrayInt32Tuple____isub___(self, self, *args)
283 def MEDCouplingDataArrayInt32TupleImul(self,*args):
285 return _medcoupling.DataArrayInt32Tuple____imul___(self, self, *args)
286 def MEDCouplingDataArrayInt32TupleIdiv(self,*args):
288 return _medcoupling.DataArrayInt32Tuple____idiv___(self, self, *args)
289 def MEDCouplingDataArrayInt32TupleImod(self,*args):
291 return _medcoupling.DataArrayInt32Tuple____imod___(self, self, *args)
292 def MEDCouplingDataArrayInt64TupleIadd(self,*args):
294 return _medcoupling.DataArrayInt64Tuple____iadd___(self, self, *args)
295 def MEDCouplingDataArrayInt64TupleIsub(self,*args):
297 return _medcoupling.DataArrayInt64Tuple____isub___(self, self, *args)
298 def MEDCouplingDataArrayInt64TupleImul(self,*args):
300 return _medcoupling.DataArrayInt64Tuple____imul___(self, self, *args)
301 def MEDCouplingDataArrayInt64TupleIdiv(self,*args):
303 return _medcoupling.DataArrayInt64Tuple____idiv___(self, self, *args)
304 def MEDCouplingDataArrayInt64TupleImod(self,*args):
306 return _medcoupling.DataArrayInt64Tuple____imod___(self, self, *args)
307 def MEDCouplingDenseMatrixIadd(self,*args):
309 return _medcoupling.DenseMatrix____iadd___(self, self, *args)
310 def MEDCouplingDenseMatrixIsub(self,*args):
312 return _medcoupling.DenseMatrix____isub___(self, self, *args)
315 %include "MEDCouplingFinalize.i"
318 %include "MEDLoaderFinalize.i"
321 %include "medcoupling_pycode"