1 // Copyright (C) 2007-2016 CEA/DEN, EDF R&D
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
19 // Author : Anthony Geay (CEA/DEN)
25 #include "MEDCouplingMemArray.txx"
27 #include "MEDCouplingDataArrayTypemaps.i"
29 using namespace MEDCoupling;
30 using namespace INTERP_KERNEL;
33 %template(ivec) std::vector<int>;
34 %template(dvec) std::vector<double>;
35 %template(svec) std::vector<std::string>;
38 %init %{ import_array(); %}
41 %init %{ initializeMe(); %}
43 %feature("autodoc", "1");
44 %feature("docstring");
48 %rename (InterpKernelException) INTERP_KERNEL::Exception;
50 %include "MEDCouplingRefCountObject.i"
51 %include "MEDCouplingMemArray.i"
55 {// AGY : here initialization of C++ traits in MEDCouplingDataArrayTypemaps.i for code factorization. Awful, I know, but no other solutions.
56 SWIGTITraits<double>::TI=SWIGTYPE_p_MEDCoupling__DataArrayDouble;
57 SWIGTITraits<float>::TI=SWIGTYPE_p_MEDCoupling__DataArrayFloat;
61 %include "MEDRenumberImpl.i"
65 __filename=os.environ.get('PYTHONSTARTUP')
66 if __filename and os.path.isfile(__filename):
67 exec(open(__filename).read())