Salome HOME
Merge 'master' branch into 'V9_dev' branch. V9_dev V9_0_0
authorrnv <rnv@opencascade.com>
Wed, 17 Jan 2018 13:11:21 +0000 (16:11 +0300)
committerrnv <rnv@opencascade.com>
Wed, 17 Jan 2018 13:11:42 +0000 (16:11 +0300)
1  2 
doc/dev/sphinx/fr/medcalc-develguide.rst
doc/dev/sphinx/fr/medop-prototype-develguide.rst
doc/dev/sphinx/medop-prototype-develguide.rst
doc/tut/medcoupling/testmed_lena.py
doc/tut/medcoupling/testmed_simple.py
doc/tut/medcoupling/testpil.py
src/MEDCalc/gui/WorkspaceController.hxx
src/MEDCalc/tui/medimages.py
src/MEDCalculator/Swig/MEDCalculator.i
src/MEDCouplingCorba_Swig/Client/MEDCouplingClient.i

index 0037c72160763745c6023069ba77b06f2fb44df6,192c895e49523a015c8d59c62e79d3b1f04cc23d..42289dc84d5bbf7e6e40684312c630808b796d95
@@@ -26,7 -26,7 +26,7 @@@ Mise en place de l'espace de développe
  ==========================================
  
  Gestion de configuration du composant MEDCalc
 --------------------------------------------
 +---------------------------------------------
  
  Le composant logiciel MEDCalc est un package du module SALOME MED,
  hébergé dans l'espace source au niveau du sous-répertoire
@@@ -34,7 -34,7 +34,7 @@@
  module SALOME MED.
  
  Organisation des sources du composant MEDCalc
 --------------------------------------------
 +---------------------------------------------
  
  Le répertoire source `src/MEDCalc` distingue les sous-répertoires
  suivants:
    MEDCalc framework
  
  Construction du composant MEDCalc
 --------------------------------
 +---------------------------------
  
  Intégré à la construction du module MED. Le composant MEDCalc dépend de
  MEDCoupling et MEDLoader uniquement.
  
  Exécution des tests unitaires du composant MEDCalc
 -------------------------------------------------
 +--------------------------------------------------
  
  Les tests unitaires peuvent être exécutés au moyen de scripts python
  lancés depuis une session shell SALOME. Dans un nouveau shell, taper::
@@@ -185,9 -185,9 +185,9 @@@ Ecrire un service CORBA qui retourne un
      _fieldHandlerMap[fieldHandler->id] = fieldHandler;
  
      // >>> WARNING: CORBA struct specification indicates that the
-     // assignement acts as a desctructor for the structure that is
+     // assignment acts as a destructor for the structure that is
      // pointed to. The values of the fields are copy first in the new
-     // structure that receives the assignement and finally the initial
+     // structure that receives the assignment and finally the initial
      // structure is destroyed. In the present case, WE WANT to keep
      // the initial fieldHandler in the map. We must then make a deep
      // copy of the structure found in the map and return the copy. The
index 8a2ed7e29ea86ea2ea995c861d39b9fe24861d75,2bd17ee851c720c889bb1b3195c20794d18345cd..8d9d876ad6f5e68342771590c0da482054bdd985
@@@ -289,7 -289,7 +289,7 @@@ l'utilisateur pour désigner les champ
  Ces classes proxy sont conçues pour être le lieu d'implémentation de
  l'interprétation des commandes utilisateur et donc de l'ergonomie
  de manipulation des champs au niveau l'interface textuelle. Ce point
 -est développé :ref:`plus bas <develguide_execFieldOperation>`.
 +est développé :ref:`plus bas <develguide_execFieldOperation-fr>`.
  
  Programmation de l'interface textuelle
  --------------------------------------
@@@ -312,9 -312,9 +312,9 @@@ graphique en images
  .. |IMG_SELECT| image:: ../images/medop-gui-selectfield_scale.png
  .. |IMG_ALIAS| image:: ../images/medop-gui-aliasfield_scale.png
  
 -+---------------+---------------+
 -| |IMG_SELECT|  | |IMG_ALIAS|   |
 -+---------------+---------------+
 ++--------------+-------------+
 +| |IMG_SELECT| | |IMG_ALIAS| |
 ++--------------+-------------+
  
  L'image de gauche montre la sélection du pas de temps, l'image de
  droite la boîte de dialogue qui permet la saisie de l'alias avec
@@@ -423,7 -423,7 +423,7 @@@ associée à ce servant (en fait associ
  ``SALOME_MED::MEDOP`` créé sur demande par le servant
  ``SALOME_MED::MED``, voir la fonction ``getFieldFromMed(...)``).
  
 -.. _develguide_execFieldOperation:
 +.. _develguide_execFieldOperation-fr:
  
  Exécution des opérations sur le champs
  --------------------------------------
@@@ -515,7 -515,7 +515,7 @@@ l'interface du servant ``SALOME_MED_MED
      FIELD pow(in FIELD f, in long power) raises (SALOME::SALOME_Exception);
      /*! Linear transformation of the field f (factor*f+offset) */
      FIELD lin(in FIELD f, in double factor, in double offset) raises (SALOME::SALOME_Exception);
-     /*! Dublication of the field f */
+     /*! Duplication of the field f */
      FIELD dup(in FIELD f) raises (SALOME::SALOME_Exception);
  
  Cette interface est implémentée dans la classe C++ ``MEDOP_i`` du
@@@ -543,9 -543,9 +543,9 @@@ module du champ dans l'exemple impléme
  .. |IMG_VISU| image:: ../images/medop-gui-visufield_scale.png
  .. |IMG_RESULT| image:: ../images/medop-gui-result_scale.png
  
 -+---------------+---------------+
 -| |IMG_VISU|    | |IMG_RESULT|  |
 -+---------------+---------------+
 ++------------+--------------+
 +| |IMG_VISU| | |IMG_RESULT| |
 ++------------+--------------+
  
  Cette fonction répond au besoin de contrôle interactif des résultats
  produits par les opérations de manipulation de champs.
@@@ -561,6 -561,7 +561,6 @@@ donnée du servant ``SALOME_MED::FIELD`
     import VISU
  
     visuComp = salome.lcc.FindOrLoadComponent("FactoryServer", "VISU")
 -   visuComp.SetCurrentStudy(salome.myStudy)
  
     # Then we can import the specified field in the VISU module. This
     # creates an study entry in the VISU folder.
index 524911f70530e07f52a744425d376ff159c8afce,0172c4617b6bc871d1fb6e01e819289493dcf523..1225b054e8f60cf43c539076754197f7286bba97
@@@ -515,7 -515,7 +515,7 @@@ l'interface du servant ``SALOME_MED_MED
      FIELD pow(in FIELD f, in long power) raises (SALOME::SALOME_Exception);
      /*! Linear transformation of the field f (factor*f+offset) */
      FIELD lin(in FIELD f, in double factor, in double offset) raises (SALOME::SALOME_Exception);
-     /*! Dublication of the field f */
+     /*! Duplication of the field f */
      FIELD dup(in FIELD f) raises (SALOME::SALOME_Exception);
  
  Cette interface est implémentée dans la classe C++ ``MEDOP_i`` du
@@@ -561,6 -561,7 +561,6 @@@ donnée du servant ``SALOME_MED::FIELD`
     import VISU
  
     visuComp = salome.lcc.FindOrLoadComponent("FactoryServer", "VISU")
 -   visuComp.SetCurrentStudy(salome.myStudy)
  
     # Then we can import the specified field in the VISU module. This
     # creates an study entry in the VISU folder.
index 4054e08f5e8b673f1b247607cbfdc937a6a06ef5,3b281aa532500eb515d0dbe2f570e947006a3cc4..3849d0f8217ab6e5b9f3f4aba0db79f37309c4a6
@@@ -1,4 -1,5 +1,4 @@@
 -#!/usr/bin/env python
 -#  -*- coding: iso-8859-1 -*-
 +#!/usr/bin/env python3
  # Copyright (C) 2011-2016  CEA/DEN, EDF R&D
  #
  # This library is free software; you can redistribute it and/or
@@@ -23,8 -24,6 +23,8 @@@
  # as a field in a med file.
  # (gboulant - 27/06/2011)
  
 +import os
 +
  import MEDCoupling as MC
  import MEDLoader as ML
  
@@@ -38,8 -37,7 +38,8 @@@ import scipy, nump
  #image = scipy.lena()
  # We could either read a real image using the PIL python package.
  from scipy.misc import pilutil
 -image = pilutil.imread("images/avatar.png",True)
 +CURDIR = os.path.dirname(__file__)
 +image = pilutil.imread(os.path.join(CURDIR, "images", "avatar.png"),True)
  
  
  #from PIL import Image
  #im=Image.open("images/lena.png")
  #image=pilutil.fromimage(im,True)
  #image=numpy.asarray(im)
 -#print image
 +# print(image)
  
  dim  = len(image.shape)
 -print "Image space dimension = %d"%dim
 +print("Image space dimension = %d"%dim)
  sizeX = image.shape[1]
  sizeY = image.shape[0]
  
@@@ -62,7 -60,7 +62,7 @@@
  # double as required by the MEDCoupling field specification.
  import numpy
  imageDataNArray       = image.reshape(1,sizeX*sizeY)[0]
 -print imageDataNArray
 +print(imageDataNArray)
  
  imageDataNArrayDouble = numpy.array(imageDataNArray, dtype='float64')
  imageDataArrayDouble  = list(imageDataNArrayDouble)
@@@ -97,10 -95,10 +97,10 @@@ coordsY=MC.DataArrayDouble.New(
  coordsY.setValues(arrY,nbNodesY,1)
  
  cmesh.setCoords(coordsX,coordsY)
 -print "Imagem mesh dimension: %d"%cmesh.getSpaceDimension()
 +print("Imagem mesh dimension: %d"%cmesh.getSpaceDimension())
  
  # WARN: In the current state of development of MEDLoader, only
- # unstructured meshes are supported for writting function in med
+ # unstructured meshes are supported for writing function in med
  # files. We just have to convert the cartesian mesh in an unstructured
  # mesh before creating the field.
  umesh=cmesh.buildUnstructured();
index e2d202cab1e91a202c3909bcf130bc727336073a,d0c3124e6001409d133494df0c7735194d18ff94..9801976d9a2f171a97dff7f6cebc4ed91d3bfa0a
@@@ -1,4 -1,5 +1,4 @@@
 -#!/usr/bin/env python
 -#  -*- coding: iso-8859-1 -*-
 +#!/usr/bin/env python3
  # Copyright (C) 2011-2016  CEA/DEN, EDF R&D
  #
  # This library is free software; you can redistribute it and/or
@@@ -52,7 -53,7 +52,7 @@@ sizeX = siz
  nbNodesX = sizeX+1
  stepX = 0.1
  arrX = [float(i * stepX) for i in range(nbNodesX)]
 -print "Size of arrX = %d"%len(arrX)
 +print("Size of arrX = %d"%len(arrX))
  
  coordsX=MC.DataArrayDouble.New()
  coordsX.setValues(arrX,nbNodesX,1)
@@@ -65,11 -66,11 +65,11 @@@ coordsY=MC.DataArrayDouble.New(
  coordsY.setValues(arrY,sizeY,1)
  
  cmesh.setCoords(coordsX,coordsY)
 -print cmesh.getSpaceDimension()
 -#print cmesh
 +print(cmesh.getSpaceDimension())
 +# print(cmesh)
  
  # WARN: In the current state of development of MEDLoader, only
- # unstructured meshes are supported for writting function in med
+ # unstructured meshes are supported for writing function in med
  # files. We just have to convert the cartesian mesh in an unstructured
  # mesh before creating the field.
  umesh=cmesh.buildUnstructured();
index c09a6b1656233f0396f25346a3ba83f771ab3450,55708e30740eb6d039bbd0bddf3cb893169cafa3..c93ef1337f42ce8e7b2ab5098893da9a7cfe3e5a
@@@ -43,20 -43,20 +43,20 @@@ def image2matrix()
      # Get the data
      imgdata=imgbw.getdata()
      width,height=imgbw.size
 -    print list(imgdata)
 -    print width,height
 +    print(list(imgdata))
 +    print(width,height)
  
      # Convert the data in a matrix using numpy
      tab=numpy.array(imgdata,dtype='float64')
 -    print list(tab)
 -    print tab
 +    print(list(tab))
 +    print(tab)
      nbRows=height
      nbCols=width
      matrix=numpy.reshape(tab,(nbRows,nbCols))
      # Note that in the reshape function, the height (sizeY) of the image
      # is specified first, because it corresponds to the number of rows.
 -    print matrix
 -    print list(matrix)
 +    print(matrix)
 +    print(list(matrix))
  
  import MEDCoupling as MC
  import MEDLoader as ML
@@@ -93,10 -93,10 +93,10 @@@ def createMesh(meshname, sizeX, sizeY)
      coordsY.setValues(arrY,nbNodesY,1)
      
      cmesh.setCoords(coordsX,coordsY)
 -    print "Imagem mesh dimension: %d"%cmesh.getSpaceDimension()
 +    print("Imagem mesh dimension: %d"%cmesh.getSpaceDimension())
      
      # WARN: In the current state of development of MEDLoader, only
-     # unstructured meshes are supported for writting function in med
+     # unstructured meshes are supported for writing function in med
      # files. We just have to convert the cartesian mesh in an unstructured
      # mesh before creating the field.
      umesh=cmesh.buildUnstructured();
index ea73983cba304e3f55f21c0036a5c65ce3501f7d,8cf5eff145da880a51b998946e502ae3eb44caa7..d07458ed48e8d70f8f98e803b0329d0e36097d01
@@@ -22,8 -22,8 +22,8 @@@
  #ifndef _WORKSPACE_CONTROLLER_HXX
  #define _WORKSPACE_CONTROLLER_HXX
  
 -#include "TreeGuiManager.hxx"
  #include "MEDEventListener_i.hxx"
 +#include "TreeGuiManager.hxx"
  #include "XmedConsoleDriver.hxx"
  #include "DatasourceController.hxx"
  #include "PresentationController.hxx"
@@@ -55,7 -55,7 +55,7 @@@ public
    XmedConsoleDriver* getConsoleDriver() { return _consoleDriver; }
  
  public slots:
-   // Slots overiding TreeGuiManager
+   // Slots overriding TreeGuiManager
    void processItemList(QStringList itemNameIdList, int actionId);
  
    // Internal slots
index 96a8892a25d06748d0394b0d1fc736e55d403d39,8a09f06b29fc4d0fb86139fb70622ef50dc57f8a..ce152d5a3e7515442b7a4f410a06e6fba30fe157
@@@ -83,10 -83,10 +83,10 @@@ class FieldBuilder
          coordsY.setValues(arrY,nbNodesY,1)
  
          cmesh.setCoords(coordsX,coordsY)
 -        print "Imagem mesh dimension: %d"%cmesh.getSpaceDimension()
 +        print("Imagem mesh dimension: %d"%cmesh.getSpaceDimension())
  
          # WARN: In the current state of development of MEDLoader, only
-         # unstructured meshes are supported for writting function in med
+         # unstructured meshes are supported for writing function in med
          # files. We just have to convert the cartesian mesh in an unstructured
          # mesh before creating the field.
          umesh=cmesh.buildUnstructured();
index adaebc43a90efbdcbd5d8927b5bc65ea86905baa,8e80cd1289b94fd76d6629a73522fc07695efb1f..a35af03bc1bfe73c1829d003eab425f52f562735
@@@ -170,7 -170,8 +170,7 @@@ namespace MEDCouplin
                 if(!PySlice_Check(obj))
                   throw INTERP_KERNEL::Exception(msg);
                 Py_ssize_t strt,stp,step;
 -               PySliceObject *oC=reinterpret_cast<PySliceObject *>(obj);
 -               PySlice_GetIndices(oC,std::numeric_limits<int>::max(),&strt,&stp,&step);
 +               PySlice_GetIndices(obj,std::numeric_limits<int>::max(),&strt,&stp,&step);
                 if(strt!=0 || stp!=std::numeric_limits<int>::max() || step!=1)
                   throw INTERP_KERNEL::Exception(msg);
                 tr.setAll(); pr.setAll(); cr.setAll();
                 convertPyObjToRS2(obj2,cr,"for 3rd tuple element for components of field");
               }
             MCAuto<MEDCalculatorDBFieldReal> ret=self->operator()(tr,pr,cr);
 -           if(PyInt_Check(val))
 +           if(PyLong_Check(val))
               {
 -               (*ret)=double(PyInt_AS_LONG(val));
 +               (*ret)=double(PyLong_AS_LONG(val));
                 ret->incrRef();
                 return ret;
               }
@@@ -389,10 -390,10 +389,10 @@@ def MEDCouplingDataArrayIntTupleIdiv(se
  def MEDCouplingDataArrayIntTupleImod(self,*args):
      import _MEDCalculator
      return _MEDCalculator.DataArrayIntTuple____imod___(self, self, *args)
- def ParaMEDMEMDenseMatrixIadd(self,*args):
+ def MEDCouplingDenseMatrixIadd(self,*args):
      import _MEDCalculator
      return _MEDCalculator.DenseMatrix____iadd___(self, self, *args)
- def ParaMEDMEMDenseMatrixIsub(self,*args):
+ def MEDCouplingDenseMatrixIsub(self,*args):
      import _MEDCalculator
      return _MEDCalculator.DenseMatrix____isub___(self, self, *args)
  %}
  %include "MEDCouplingFinalize.i"
  
  %pythoncode %{
 +MEDCalculatorDBFieldReal.__rtruediv__ = MEDCalculatorDBFieldReal.__rdiv__
  def MEDCouplingMEDFileUMeshReduce(self):
    return MEDCouplingStdReduceFunct,(MEDFileUMesh,((),(self.__getstate__()),))
  MEDFileUMesh.__reduce__=MEDCouplingMEDFileUMeshReduce
index 33e2263674e658677e92a748cbc908fa15ce50e4,8f6e421c0c993865d2519997dd3bab2147c5e335..d6fc029a27d05876adef34bf8cd3300e4ad55a57
@@@ -59,16 -59,6 +59,16 @@@ using namespace MEDCoupling
  %nodefaultctor;
  %nodefaultdtor;
  
 +%{
 +#if PY_VERSION_HEX < 0x03050000
 +static char*
 +Py_EncodeLocale(const wchar_t *text, size_t *error_pos)
 +{
 +   return _Py_wchar2char(text, error_pos);
 +}
 +#endif
 +%}
 +
  namespace MEDCoupling
  {
    class MEDCouplingFieldDoubleClient
@@@ -88,7 -78,7 +88,7 @@@
            PyObject *iorField=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",fieldPtr);
            if(!iorField)
              throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCouplingFieldDoubleClient.New appears to differ from CORBA reference ! Expecting a FieldDouble CORBA reference !");
 -          char *ior=PyString_AsString(iorField);
 +          char *ior=Py_EncodeLocale(PyUnicode_AS_UNICODE(iorField), NULL);
            int argc=0;
            CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
            CORBA::Object_var fieldPtrCpp=orb->string_to_object(ior);
            PyObject *iorField=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",fieldPtr);
            if(!iorField)
              throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCouplingFieldTemplateClient.New appears to differ from CORBA reference ! Expecting a FieldTemplate CORBA reference !");
 -          char *ior=PyString_AsString(iorField);
 +          char *ior=Py_EncodeLocale(PyUnicode_AS_UNICODE(iorField), NULL);
            int argc=0;
            CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
            CORBA::Object_var fieldPtrCpp=orb->string_to_object(ior);
            PyObject *iorField=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",fieldPtr);
            if(!iorField)
              throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCouplingFieldTemplateClient.New appears to differ from CORBA reference ! Expecting a MultiFields CORBA reference !");
 -          char *ior=PyString_AsString(iorField);
 +          char *ior=Py_EncodeLocale(PyUnicode_AS_UNICODE(iorField), NULL);
            int argc=0;
            CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
            CORBA::Object_var fieldPtrCpp=orb->string_to_object(ior);
            PyObject *iorField=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",fieldPtr);
            if(!iorField)
              throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCouplingFieldOverTimeClient.New appears to differ from CORBA reference ! Expecting a FieldOverTime CORBA reference !");
 -          char *ior=PyString_AsString(iorField);
 +          char *ior=Py_EncodeLocale(PyUnicode_AS_UNICODE(iorField), NULL);
            int argc=0;
            CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
            CORBA::Object_var fieldPtrCpp=orb->string_to_object(ior);
            PyObject *iorMesh=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",meshPtr);
            if(!iorMesh)
              throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCouplingMeshClient.New appears to differ from CORBA reference ! Expecting a MeshCorbaInterface CORBA reference !");
 -          char *ior=PyString_AsString(iorMesh);
 +          char *ior=Py_EncodeLocale(PyUnicode_AS_UNICODE(iorMesh), NULL);
            int argc=0;
            CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
            CORBA::Object_var meshPtrCpp=orb->string_to_object(ior);
            PyObject *iorMesh=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",meshPtr);
            if(!iorMesh)
              throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCouplingUMeshClient.New appears to differ from CORBA reference ! Expecting a UMeshCorbaInterface CORBA reference !");
 -          char *ior=PyString_AsString(iorMesh);
 +          char *ior=Py_EncodeLocale(PyUnicode_AS_UNICODE(iorMesh), NULL);
            int argc=0;
            CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
            CORBA::Object_var meshPtrCpp=orb->string_to_object(ior);
            PyObject *iorMesh=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",meshPtr);
            if(!iorMesh)
              throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCoupling1SGTUMeshClient.New appears to differ from CORBA reference ! Expecting a 1SGTUMeshCorbaInterface CORBA reference !");
 -          char *ior=PyString_AsString(iorMesh);
 +          char *ior=Py_EncodeLocale(PyUnicode_AS_UNICODE(iorMesh), NULL);
            int argc=0;
            CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
            CORBA::Object_var meshPtrCpp=orb->string_to_object(ior);
            PyObject *iorMesh=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",meshPtr);
            if(!iorMesh)
              throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCoupling1DGTUMeshClient.New appears to differ from CORBA reference ! Expecting a 1DGTUMeshCorbaInterface CORBA reference !");
 -          char *ior=PyString_AsString(iorMesh);
 +          char *ior=Py_EncodeLocale(PyUnicode_AS_UNICODE(iorMesh), NULL);
            int argc=0;
            CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
            CORBA::Object_var meshPtrCpp=orb->string_to_object(ior);
            PyObject *iorMesh=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",meshPtr);
            if(!iorMesh)
              throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCouplingExtrudedMeshClient.New appears to differ from CORBA reference ! Expecting an ExtrudedMeshCorbaInterface CORBA reference !");
 -          char *ior=PyString_AsString(iorMesh);
 +          char *ior=Py_EncodeLocale(PyUnicode_AS_UNICODE(iorMesh), NULL);
            int argc=0;
            CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
            CORBA::Object_var meshPtrCpp=orb->string_to_object(ior);
            PyObject *iorMesh=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",meshPtr);
            if(!iorMesh)
              throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCouplingCMeshClient.New appears to differ from CORBA reference ! Expecting a CMeshCorbaInterface CORBA reference !");
 -          char *ior=PyString_AsString(iorMesh);
 +          char *ior=Py_EncodeLocale(PyUnicode_AS_UNICODE(iorMesh), NULL);
            int argc=0;
            CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
            CORBA::Object_var meshPtrCpp=orb->string_to_object(ior);
            PyObject *iorMesh=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",meshPtr);
            if(!iorMesh)
              throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCouplingIMeshClient.New appears to differ from CORBA reference ! Expecting a IMeshCorbaInterface CORBA reference !");
 -          char *ior=PyString_AsString(iorMesh);
 +          char *ior=Py_EncodeLocale(PyUnicode_AS_UNICODE(iorMesh), NULL);
            int argc=0;
            CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
            CORBA::Object_var meshPtrCpp=orb->string_to_object(ior);
            PyObject *iorMesh=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",meshPtr);
            if(!iorMesh)
              throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCouplingCurveLinearMeshClient.New appears to differ from CORBA reference ! Expecting a CurveLinearMeshCorbaInterface CORBA reference !");
 -          char *ior=PyString_AsString(iorMesh);
 +          char *ior=Py_EncodeLocale(PyUnicode_AS_UNICODE(iorMesh), NULL);
            int argc=0;
            CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
            CORBA::Object_var meshPtrCpp=orb->string_to_object(ior);
            PyObject *iorMesh=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",meshPtr);
            if(!iorMesh)
              throw INTERP_KERNEL::Exception("Error : the input parameter of DataArrayDoubleClient.New appears to differ from CORBA reference ! Expecting a DataArrayDoubleCorbaInterface CORBA reference !");
 -          char *ior=PyString_AsString(iorMesh);
 +          char *ior=Py_EncodeLocale(PyUnicode_AS_UNICODE(iorMesh), NULL);
            int argc=0;
            CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
            CORBA::Object_var meshPtrCpp=orb->string_to_object(ior);
            PyObject *iorMesh=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",meshPtr);
            if(!iorMesh)
              throw INTERP_KERNEL::Exception("Error : the input parameter of DataArrayIntClient.New appears to differ from CORBA reference ! Expecting a DataArrayIntCorbaInterface CORBA reference !");
 -          char *ior=PyString_AsString(iorMesh);
 +          char *ior=Py_EncodeLocale(PyUnicode_AS_UNICODE(iorMesh), NULL);
            int argc=0;
            CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
            CORBA::Object_var meshPtrCpp=orb->string_to_object(ior);
@@@ -652,10 -642,10 +652,10 @@@ def MEDCouplingDataArrayIntTupleIdiv(se
  def MEDCouplingDataArrayIntTupleImod(self,*args):
      import _MEDCouplingClient
      return _MEDCouplingClient.DataArrayIntTuple____imod___(self, self, *args)
- def ParaMEDMEMDenseMatrixIadd(self,*args):
+ def MEDCouplingDenseMatrixIadd(self,*args):
      import _MEDCouplingClient
      return _MEDCouplingClient.DenseMatrix____iadd___(self, self, *args)
- def ParaMEDMEMDenseMatrixIsub(self,*args):
+ def MEDCouplingDenseMatrixIsub(self,*args):
      import _MEDCouplingClient
      return _MEDCouplingClient.DenseMatrix____isub___(self, self, *args)
  %}