From: cristianrosa Date: Thu, 29 Jul 2010 14:25:02 +0000 (+0000) Subject: Enable using the MC with SMPI X-Git-Tag: v3_5~756 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a1b9570ff3273725b1843dfadc6c13d229ac3dbb Enable using the MC with SMPI git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8065 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/smpi/smpi_global.c b/src/smpi/smpi_global.c index dc7edf4f57..6f92d0fdab 100644 --- a/src/smpi/smpi_global.c +++ b/src/smpi/smpi_global.c @@ -8,6 +8,7 @@ #include "private.h" #include "smpi_mpi_dt_private.h" +#include "mc/mc.h" XBT_LOG_NEW_CATEGORY(smpi, "All SMPI categories"); @@ -197,7 +198,12 @@ int main(int argc, char **argv) fflush(stderr); SIMIX_init(); - while (SIMIX_solve(NULL, NULL) != -1.0); +#ifdef HAVE_MC + if (_surf_do_model_check) + MC_modelcheck(1); + else +#endif + while (SIMIX_solve(NULL, NULL) != -1.0); if (xbt_cfg_get_int(_surf_cfg_set, "smpi/display_timing")) INFO1("simulation time %g", SIMIX_get_clock());