Salome HOME
[Intersect2D] Keep flexibility on orientation of mesh2
[tools/medcoupling.git] / src / MEDPartitioner / medpartitioner_para.cxx
old mode 100755 (executable)
new mode 100644 (file)
index 419622a..e6079f7
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2021  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
@@ -51,8 +51,9 @@
 #include <iomanip>
 #include <sstream>
 #include <string>
+#include <cstring>
 
-#ifdef HAVE_MPI2
+#ifdef HAVE_MPI
 #include <mpi.h>
 #endif
 
@@ -101,7 +102,7 @@ int main(int argc, char** argv)
 //user can choose! (not yet)
                "\t--split-method=<string>  : name of the splitting library (metis/scotch), default is metis\n"
 #endif
-               "\t--creates-boundary-faces : creates boundary faces mesh in the output files\n"
+               "\t--create-boundary-faces : creates boundary faces mesh in the output files\n"
                "\t--dump-cpu-memory        : dumps passed CPU time and maximal increase of used memory\n"
                //"\t--randomize=<number>     : random seed for other partitionning (only on one proc)\n"
                //"\t--atomize                : do the opposite of a good partitionner (only on one proc)\n"
@@ -130,7 +131,7 @@ int main(int argc, char** argv)
       else if (TestArg(argv[i],"--ndomains",value)) ndomains=atoi(value.c_str());
       else if (TestArg(argv[i],"--randomize",value)) MyGlobals::_Randomize=atoi(value.c_str());
       else if (TestArg(argv[i],"--atomize",value)) MyGlobals::_Atomize=atoi(value.c_str());
-      else if (TestArg(argv[i],"--creates-boundary-faces",value)) MyGlobals::_Creates_Boundary_Faces=1;
+      else if (TestArg(argv[i],"--create-boundary-faces",value)) MyGlobals::_Create_Boundary_Faces=1;
       else if (TestArg(argv[i],"--dump-cpu-memory",value)) mesure_memory=true;
       else 
         {
@@ -195,7 +196,7 @@ int main(int argc, char** argv)
       cout << "  output-file = " << output << endl;
       cout << "  split-method = " << library << endl;
       cout << "  ndomains = " << ndomains << endl;
-      cout << "  creates_boundary_faces = " << MyGlobals::_Creates_Boundary_Faces << endl;
+      cout << "  create_boundary_faces = " << MyGlobals::_Create_Boundary_Faces << endl;
       cout << "  dump-cpu-memory = " << mesure_memory<< endl;
       cout << "  verbose = " << MyGlobals::_Verbose << endl;
     }
@@ -302,7 +303,7 @@ int main(int argc, char** argv)
       if (MyGlobals::_Is0verbose) 
         cout << "generalInformations : \n"<<ReprVectorOfString(finalInformations);
     
-      //new_collection.setSubdomainBoundaryCreates(creates_boundary_faces);
+      //new_collection.setSubdomainBoundaryCreates(create_boundary_faces);
       if (MyGlobals::_Is0verbose) cout << "Writing "<<ndomains<<" output files "<<output<<"xx.med"<<" and "<<output<<".xml"<<endl;
       new_collection.write(output);
   
@@ -342,7 +343,7 @@ int main(int argc, char** argv)
     }
   catch(...)
     {
-      cerr<<"proc "<<MyGlobals::_Rank<<" : an unknown type exception error was occured"<<endl;
+      cerr<<"proc "<<MyGlobals::_Rank<<" : an unknown type exception error has occurred"<<endl;
       fflush(stderr);
       MPI_Finalize();
       return 1;