From: cvw Date: Tue, 27 Mar 2012 12:51:20 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V6_main_FINAL~717 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dd9e9d8652d101b3bb177c490f89d090c980b46d;p=tools%2Fmedcoupling.git *** empty log message *** --- diff --git a/src/MEDPartitioner/medpartitioner_para.cxx b/src/MEDPartitioner/medpartitioner_para.cxx index 94f07f4da..1628e863b 100644 --- a/src/MEDPartitioner/medpartitioner_para.cxx +++ b/src/MEDPartitioner/medpartitioner_para.cxx @@ -61,8 +61,8 @@ using namespace MEDPARTITIONER; int main(int argc, char** argv) { -#if !defined(MED_ENABLE_PARMETIS) && !defined(MED_ENABLE_SCOTCH) - cout << "Sorry, no one split method is available. Please, compile with ParMETIS or PT-SCOTCH."< : name of the input .med file or .xml master file\n" "\t--output-file= : name of the resulting file (without extension)\n" "\t--ndomains= : number of subdomains in the output file, default is 1\n" -#if defined(MED_ENABLE_PARMETIS) && defined(MED_ENABLE_SCOTCH) - //user can choose! +#if defined(MED_ENABLE_PARMETIS) +// || defined(MED_ENABLE_PTSCOTCH) +//user can choose! (not yet) "\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" @@ -312,7 +313,8 @@ int main(int argc, char** argv) << ", max memory usage = " << parallelizer.evaluateMemory() << " KB" << endl; } - MPI_Barrier(MPI_COMM_WORLD); + if(MyGlobals::_World_Size>1) + MPI_Barrier(MPI_COMM_WORLD); if (MyGlobals::_Is0verbose>0) cout<<"OK END"<< endl; MPI_Finalize(); return 0; @@ -347,3 +349,4 @@ int main(int argc, char** argv) } #endif } +