X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4a658fbeb72a247b1025ed07de8368e5cc9fcec9..e133a950865071b1c006387e915d39989a53c8cd:/src/cxx/Simulation.cxx diff --git a/src/cxx/Simulation.cxx b/src/cxx/Simulation.cxx index b1fd89e32a..34ee0fd20b 100644 --- a/src/cxx/Simulation.cxx +++ b/src/cxx/Simulation.cxx @@ -15,12 +15,20 @@ #include +#include +#include + +#include +#include + +#include + +#include + namespace SimGrid { namespace Msg { - - int Simulation::execute(int argc, char** argv) { if(argc < 3) @@ -55,6 +63,7 @@ namespace SimGrid try { app.deploy(argv[2]); + } catch(FileNotFoundException e) { info(e.toString()); @@ -65,7 +74,7 @@ namespace SimGrid //try to run the simulation the given application on the given environment try { - this->run(); + run(); } catch(MsgException e) { @@ -81,7 +90,7 @@ namespace SimGrid } catch(MsgException e) { - info(e.toString()) + info(e.toString()); return 1; }