X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDPartitioner%2FMEDPARTITIONER_Utils.hxx;h=6a469b5974505197ea1ada92e5529176b3c72bce;hb=b7e277ad50223814bc479c5bd64cf12abe8fc959;hp=ea28546169f1c84103b3029484f12d3f74bf9319;hpb=f1a947b32a36d8dc8e3079b25305bb50e8cb59a0;p=tools%2Fmedcoupling.git diff --git a/src/MEDPartitioner/MEDPARTITIONER_Utils.hxx b/src/MEDPartitioner/MEDPARTITIONER_Utils.hxx index ea2854616..6a469b597 100644 --- a/src/MEDPartitioner/MEDPARTITIONER_Utils.hxx +++ b/src/MEDPartitioner/MEDPARTITIONER_Utils.hxx @@ -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 @@ -77,18 +77,18 @@ namespace MEDPARTITIONER MEDPARTITIONER_EXPORT void FieldShortDescriptionToData(const std::string& description, std::string& fieldName, int& typeField, int& entity, int& DT, int& IT); - ParaMEDMEM::DataArrayInt *CreateDataArrayIntFromVector(const std::vector& v); - ParaMEDMEM::DataArrayInt *CreateDataArrayIntFromVector(const std::vector& v, const int nbComponents); - ParaMEDMEM::DataArrayDouble *CreateDataArrayDoubleFromVector(const std::vector& v); + MEDCoupling::DataArrayInt *CreateDataArrayIntFromVector(const std::vector& v); + MEDCoupling::DataArrayInt *CreateDataArrayIntFromVector(const std::vector& v, const int nbComponents); + MEDCoupling::DataArrayDouble *CreateDataArrayDoubleFromVector(const std::vector& v); - ParaMEDMEM::MEDCouplingUMesh *CreateEmptyMEDCouplingUMesh(); + MEDCoupling::MEDCouplingUMesh *CreateEmptyMEDCouplingUMesh(); - std::vector BrowseFieldDouble(const ParaMEDMEM::MEDCouplingFieldDouble* fd); + std::vector BrowseFieldDouble(const MEDCoupling::MEDCouplingFieldDouble* fd); std::vector BrowseAllFields(const std::string& myfile); std::vector BrowseAllFieldsOnMesh(const std::string& myfile, const std::string& mymesh, const int idomain); std::vector GetInfosOfField(const char *fileName, const char *meshName, const int idomain ); -#ifdef HAVE_MPI2 +#ifdef HAVE_MPI //not adviced, interblocking, use sendAndReceive //void SendVectorOfString(const std::vector& vec, const int target); //std::vector RecvVectorOfString(const int source); @@ -104,10 +104,10 @@ namespace MEDPARTITIONER std::vector* RecvIntVec(int source); void RecvIntVec(std::vector& vec, const int source); - void SendDataArrayInt(const ParaMEDMEM::DataArrayInt* da, const int target); - ParaMEDMEM::DataArrayInt *RecvDataArrayInt(const int source); - void SendDataArrayDouble(const ParaMEDMEM::DataArrayDouble* da, const int target); - ParaMEDMEM::DataArrayDouble *RecvDataArrayDouble(const int source); + void SendDataArrayInt(const MEDCoupling::DataArrayInt* da, const int target); + MEDCoupling::DataArrayInt *RecvDataArrayInt(const int source); + void SendDataArrayDouble(const MEDCoupling::DataArrayDouble* da, const int target); + MEDCoupling::DataArrayDouble *RecvDataArrayDouble(const int source); void TestVectorOfStringMpi(); void TestMapOfStringIntMpi(); @@ -127,6 +127,7 @@ namespace MEDPARTITIONER static int _Randomize; static int _Atomize; static int _Creates_Boundary_Faces; + static int _Create_Joints; static int _Is0verbose; //trace cout if rank 0 and verbose static std::vector _File_Names; //on [iold] static std::vector _Mesh_Names; //on [iold]