added define for nms MPI example
authorJosh Pelkey <jpelkey@gatech.edu>
Mon Nov 02 11:57:20 2009 -0500 (3 months ago)
changeset 55208cd6033d3886
parent 5519 9eb8ed68c1f2
child 5521 b303a7d65a95
added define for nms MPI example
examples/mpi/nms-udp-nix.cc
     1.1 --- a/examples/mpi/nms-udp-nix.cc	Mon Nov 02 10:56:30 2009 -0500
     1.2 +++ b/examples/mpi/nms-udp-nix.cc	Mon Nov 02 11:57:20 2009 -0500
     1.3 @@ -40,6 +40,7 @@
     1.4  int
     1.5  main (int argc, char *argv[])
     1.6  {
     1.7 +#ifdef NS3_MPI
     1.8    // Enable MPI with the command line arguments
     1.9    MPIInterface::Enable(&argc, &argv);
    1.10  
    1.11 @@ -522,5 +523,8 @@
    1.12    cout << "Simulator run time: " << d2 << endl;
    1.13    cout << "Total elapsed time: " << d1+d2 << endl;
    1.14    return 0;
    1.15 +#else
    1.16 +    NS_FATAL_ERROR ("Can't use distributed simulator without MPI compiled in");
    1.17 +#endif
    1.18  }
    1.19