X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDPartitioner%2Fmedpartitioner.cxx;h=adc4f374227528254ec9edb08684e75f0f350752;hb=bb91878b3fb670041c09ea7aefce3132e157b126;hp=9dc2aad62ea71cd21e6ebb1cae6c64f423c40942;hpb=887d0e1efce4f46f68d2596dcd801f02f5c1f99e;p=tools%2Fmedcoupling.git diff --git a/src/MEDPartitioner/medpartitioner.cxx b/src/MEDPartitioner/medpartitioner.cxx index 9dc2aad62..adc4f3742 100644 --- a/src/MEDPartitioner/medpartitioner.cxx +++ b/src/MEDPartitioner/medpartitioner.cxx @@ -1,9 +1,9 @@ -// Copyright (C) 2007-2012 CEA/DEN, EDF R&D +// Copyright (C) 2007-2019 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 @@ -72,7 +72,8 @@ int main(int argc, char** argv) //sequential : no MPI MyGlobals::_World_Size=1; MyGlobals::_Rank=0; - MyGlobals::_Creates_Boundary_Faces=0; + MyGlobals::_Create_Boundary_Faces=0; + MyGlobals::_Create_Joints=0; // Primitive parsing of command-line options string desc ("Available options of medpartitioner V1.0:\n" @@ -85,7 +86,8 @@ int main(int argc, char** argv) //user can choose! "\t--split-method= : 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--create-joints : creates joints in the output files\n" "\t--dump-cpu-memory : dumps passed CPU time and maximal increase of used memory\n" ); @@ -110,7 +112,8 @@ int main(int argc, char** argv) else if (TestArg(argv[i],"--output-file",value)) output=value; else if (TestArg(argv[i],"--split-method",value)) library=value; else if (TestArg(argv[i],"--ndomains",value)) ndomains=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],"--create-joints",value)) MyGlobals::_Create_Joints=1; else if (TestArg(argv[i],"--dump-cpu-memory",value)) mesure_memory=true; else { @@ -150,7 +153,8 @@ 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 << " create-joints = " << MyGlobals::_Create_Joints<< endl; cout << " dump-cpu-memory = " << mesure_memory<< endl; cout << " verbose = " << MyGlobals::_Verbose << endl; } @@ -263,7 +267,7 @@ int main(int argc, char** argv) if (MyGlobals::_Is0verbose) cout << "generalInformations : \n"<