X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a51837d2ea27dd5114fc26aa679818f14796a029..78d028b6abfd9ae331fddb2123c3491869867649:/src/smpi/bindings/smpi_mpi.cpp diff --git a/src/smpi/bindings/smpi_mpi.cpp b/src/smpi/bindings/smpi_mpi.cpp index 92442a00d5..483f17dce3 100644 --- a/src/smpi/bindings/smpi_mpi.cpp +++ b/src/smpi/bindings/smpi_mpi.cpp @@ -10,13 +10,19 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_mpi, smpi, "Logging specific to SMPI ,(mpi) #define NOT_YET_IMPLEMENTED \ { \ - xbt_die("Not yet implemented : %s. Please contact the SimGrid team if support is needed", __FUNCTION__); \ + xbt_die("Not yet implemented: %s. Please contact the SimGrid team if support is needed", __FUNCTION__); \ return MPI_SUCCESS; \ } - -#define NOT_YET_IMPLEMENTED_NOFAIL \ + +#define NOT_YET_IMPLEMENTED_NOFAIL \ { \ - XBT_WARN("Not yet implemented : %s. Please contact the SimGrid team if support is needed. Run with --log=smpi_mpi.thresh:error to hide", __FUNCTION__); \ + static bool warning_todo = true; \ + if (warning_todo) \ + XBT_WARN("Not yet implemented: %s. " \ + "Please contact the SimGrid team if support is needed. " \ + "Run with --log=smpi_mpi.thresh:error to hide", \ + __FUNCTION__); \ + warning_todo = false; \ return MPI_SUCCESS; \ }