-// Copyright (C) 2007-2015 CEA/DEN, EDF R&D
+// Copyright (C) 2007-2024 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-%include "MEDPartitionerCommon.i"
+%module MEDPartitioner
+
+%{
+#include "MEDFileData.hxx"
+using namespace MEDCoupling;
+using namespace INTERP_KERNEL;
+%}
-// %pythoncode %{
-// def ParaMEDMEMDataArrayDoublenew(cls,*args):
-// import _MEDPartitioner
-// return _MEDPartitioner.DataArrayDouble____new___(cls,args)
-// def ParaMEDMEMDataArrayDoubleIadd(self,*args):
-// import _MEDPartitioner
-// return _MEDPartitioner.DataArrayDouble____iadd___(self, self, *args)
-// def ParaMEDMEMDataArrayDoubleIsub(self,*args):
-// import _MEDPartitioner
-// return _MEDPartitioner.DataArrayDouble____isub___(self, self, *args)
-// def ParaMEDMEMDataArrayDoubleImul(self,*args):
-// import _MEDPartitioner
-// return _MEDPartitioner.DataArrayDouble____imul___(self, self, *args)
-// def ParaMEDMEMDataArrayDoubleIdiv(self,*args):
-// import _MEDPartitioner
-// return _MEDPartitioner.DataArrayDouble____idiv___(self, self, *args)
-// def ParaMEDMEMDataArrayDoubleIpow(self,*args):
-// import _MEDPartitioner
-// return _MEDPartitioner.DataArrayDouble____ipow___(self, self, *args)
-// def ParaMEDMEMDataArrayIntnew(cls,*args):
-// import _MEDPartitioner
-// return _MEDPartitioner.DataArrayInt____new___(cls,args)
-// def ParaMEDMEMDataArrayIntIadd(self,*args):
-// import _MEDPartitioner
-// return _MEDPartitioner.DataArrayInt____iadd___(self, self, *args)
-// def ParaMEDMEMDataArrayIntIsub(self,*args):
-// import _MEDPartitioner
-// return _MEDPartitioner.DataArrayInt____isub___(self, self, *args)
-// def ParaMEDMEMDataArrayIntImul(self,*args):
-// import _MEDPartitioner
-// return _MEDPartitioner.DataArrayInt____imul___(self, self, *args)
-// def ParaMEDMEMDataArrayIntIdiv(self,*args):
-// import _MEDPartitioner
-// return _MEDPartitioner.DataArrayInt____idiv___(self, self, *args)
-// def ParaMEDMEMDataArrayIntImod(self,*args):
-// import _MEDPartitioner
-// return _MEDPartitioner.DataArrayInt____imod___(self, self, *args)
-// def ParaMEDMEMDataArrayIntIpow(self,*args):
-// import _MEDPartitioner
-// return _MEDPartitioner.DataArrayInt____ipow___(self, self, *args)
-// def ParaMEDMEMDataArrayDoubleTupleIadd(self,*args):
-// import _MEDPartitioner
-// return _MEDPartitioner.DataArrayDoubleTuple____iadd___(self, self, *args)
-// def ParaMEDMEMDataArrayDoubleTupleIsub(self,*args):
-// import _MEDPartitioner
-// return _MEDPartitioner.DataArrayDoubleTuple____isub___(self, self, *args)
-// def ParaMEDMEMDataArrayDoubleTupleImul(self,*args):
-// import _MEDPartitioner
-// return _MEDPartitioner.DataArrayDoubleTuple____imul___(self, self, *args)
-// def ParaMEDMEMDataArrayDoubleTupleIdiv(self,*args):
-// import _MEDPartitioner
-// return _MEDPartitioner.DataArrayDoubleTuple____idiv___(self, self, *args)
-// def ParaMEDMEMDataArrayIntTupleIadd(self,*args):
-// import _MEDPartitioner
-// return _MEDPartitioner.DataArrayIntTuple____iadd___(self, self, *args)
-// def ParaMEDMEMDataArrayIntTupleIsub(self,*args):
-// import _MEDPartitioner
-// return _MEDPartitioner.DataArrayIntTuple____isub___(self, self, *args)
-// def ParaMEDMEMDataArrayIntTupleImul(self,*args):
-// import _MEDPartitioner
-// return _MEDPartitioner.DataArrayIntTuple____imul___(self, self, *args)
-// def ParaMEDMEMDataArrayIntTupleIdiv(self,*args):
-// import _MEDPartitioner
-// return _MEDPartitioner.DataArrayIntTuple____idiv___(self, self, *args)
-// def ParaMEDMEMDataArrayIntTupleImod(self,*args):
-// import _MEDPartitioner
-// return _MEDPartitioner.DataArrayIntTuple____imod___(self, self, *args)
-// %}
+%include std_string.i
+%feature("autodoc", "1");
+%feature("docstring");
-// %pythoncode %{
-// DataArrayDouble.__new__=classmethod(ParaMEDMEMDataArrayDoublenew)
-// DataArrayDouble.__iadd__=ParaMEDMEMDataArrayDoubleIadd
-// DataArrayDouble.__isub__=ParaMEDMEMDataArrayDoubleIsub
-// DataArrayDouble.__imul__=ParaMEDMEMDataArrayDoubleImul
-// DataArrayDouble.__idiv__=ParaMEDMEMDataArrayDoubleIdiv
-// DataArrayDouble.__ipow__=ParaMEDMEMDataArrayDoubleIpow
+%feature("unref") MEDCoupling::MEDFileData "$this->decrRef();"
-// DataArrayInt.__new__=classmethod(ParaMEDMEMDataArrayIntnew)
-// DataArrayInt.__iadd__=ParaMEDMEMDataArrayIntIadd
-// DataArrayInt.__isub__=ParaMEDMEMDataArrayIntIsub
-// DataArrayInt.__imul__=ParaMEDMEMDataArrayIntImul
-// DataArrayInt.__idiv__=ParaMEDMEMDataArrayIntIdiv
-// DataArrayInt.__imod__=ParaMEDMEMDataArrayIntImod
-// DataArrayInt.__ipow__=ParaMEDMEMDataArrayIntIpow
+%nodefaultctor;
-// DataArrayDoubleTuple.__iadd__=ParaMEDMEMDataArrayDoubleTupleIadd
-// DataArrayDoubleTuple.__isub__=ParaMEDMEMDataArrayDoubleTupleIsub
-// DataArrayDoubleTuple.__imul__=ParaMEDMEMDataArrayDoubleTupleImul
-// DataArrayDoubleTuple.__idiv__=ParaMEDMEMDataArrayDoubleTupleIdiv
+%rename (InterpKernelException) INTERP_KERNEL::Exception;
-// DataArrayIntTuple.__iadd__=ParaMEDMEMDataArrayIntTupleIadd
-// DataArrayIntTuple.__isub__=ParaMEDMEMDataArrayIntTupleIsub
-// DataArrayIntTuple.__imul__=ParaMEDMEMDataArrayIntTupleImul
-// DataArrayIntTuple.__idiv__=ParaMEDMEMDataArrayIntTupleIdiv
-// DataArrayIntTuple.__imod__=ParaMEDMEMDataArrayIntTupleImod
+%include "MEDPartitionerCommon.i"
-// del ParaMEDMEMDataArrayDoublenew
-// del ParaMEDMEMDataArrayDoubleIadd
-// del ParaMEDMEMDataArrayDoubleIsub
-// del ParaMEDMEMDataArrayDoubleImul
-// del ParaMEDMEMDataArrayDoubleIdiv
-// del ParaMEDMEMDataArrayIntnew
-// del ParaMEDMEMDataArrayIntIadd
-// del ParaMEDMEMDataArrayIntIsub
-// del ParaMEDMEMDataArrayIntImul
-// del ParaMEDMEMDataArrayIntIdiv
-// del ParaMEDMEMDataArrayIntImod
-// del ParaMEDMEMDataArrayDoubleTupleIadd
-// del ParaMEDMEMDataArrayDoubleTupleIsub
-// del ParaMEDMEMDataArrayDoubleTupleImul
-// del ParaMEDMEMDataArrayDoubleTupleIdiv
-// del ParaMEDMEMDataArrayIntTupleIadd
-// del ParaMEDMEMDataArrayIntTupleIsub
-// del ParaMEDMEMDataArrayIntTupleImul
-// del ParaMEDMEMDataArrayIntTupleIdiv
-// del ParaMEDMEMDataArrayIntTupleImod
-// %}