Salome HOME
Update C++ code consecutive to API modification of ReadField
[tools/medcoupling.git] / src / MEDPartitioner / MEDPARTITIONER_JointFinder.cxx
index 0875976f9b9a3e08e609457ef6c73ba87f69b049..5836662a6a9993b418c42567042df7b175313d5d 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2013  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2016  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -50,8 +50,8 @@ void MEDPARTITIONER::JointFinder::findCommonDistantNodes()
   int nbproc=_domain_selector->nbProcs();
   std::vector<BBTreeOfDim* > bbtree(nbdomain,(BBTreeOfDim*) 0);
   std::vector<double* > bbxi(nbdomain,(double*) 0);
-  std::vector<ParaMEDMEM::DataArrayInt*> rev(nbdomain,(ParaMEDMEM::DataArrayInt*) 0);
-  std::vector<ParaMEDMEM::DataArrayInt*> revIndx(nbdomain,(ParaMEDMEM::DataArrayInt*) 0);
+  std::vector<MEDCoupling::DataArrayInt*> rev(nbdomain,(MEDCoupling::DataArrayInt*) 0);
+  std::vector<MEDCoupling::DataArrayInt*> revIndx(nbdomain,(MEDCoupling::DataArrayInt*) 0);
   int meshDim=-1;
   int spaceDim=-1;
 
@@ -60,11 +60,11 @@ void MEDPARTITIONER::JointFinder::findCommonDistantNodes()
     {
       if(!_domain_selector->isMyDomain(mydomain))
         continue;
-      const ParaMEDMEM::MEDCouplingUMesh* myMesh=_mesh_collection.getMesh(mydomain);
+      const MEDCoupling::MEDCouplingUMesh* myMesh=_mesh_collection.getMesh(mydomain);
       meshDim = myMesh->getMeshDimension();
       spaceDim= myMesh->getSpaceDimension();
-      rev[mydomain] = ParaMEDMEM::DataArrayInt::New();
-      revIndx[mydomain] = ParaMEDMEM::DataArrayInt::New();
+      rev[mydomain] = MEDCoupling::DataArrayInt::New();
+      revIndx[mydomain] = MEDCoupling::DataArrayInt::New();
       myMesh->getReverseNodalConnectivity(rev[mydomain],revIndx[mydomain]);
       double* bbx=new double[2*spaceDim*myMesh->getNumberOfNodes()];
       for (int i=0; i<myMesh->getNumberOfNodes()*spaceDim; i++)
@@ -84,7 +84,7 @@ void MEDPARTITIONER::JointFinder::findCommonDistantNodes()
     {
       for (int itarget=0; itarget<nbdomain; itarget++)
         {
-          const ParaMEDMEM::MEDCouplingUMesh* sourceMesh=_mesh_collection.getMesh(isource);
+          const MEDCoupling::MEDCouplingUMesh* sourceMesh=_mesh_collection.getMesh(isource);
           if (_domain_selector->isMyDomain(isource)&&_domain_selector->isMyDomain(itarget))
             continue;
           if (_domain_selector->isMyDomain(isource))