Commit 8d59d14d authored by Robert Klöfkorn's avatar Robert Klöfkorn

use MPI helper.


[[Imported from SVN: r159]]
parent 1e21a159
......@@ -4,12 +4,12 @@
#include "config.h"
#include "unitcube.hh"
#include <dune/common/mpihelper.hh> // include mpi helper class
int main(int argc, char **argv)
{
#if HAVE_MPI
MPI_Init(&argc,&argv);
#endif
// initialize MPI, finalize is done automatically on exit
Dune::MPIHelper::instance(argc,argv);
// start try/catch block to get error messages from dune
try {
......@@ -49,10 +49,6 @@ int main(int argc, char **argv)
return 1;
}
#if HAVE_MPI
MPI_Finalize();
#endif
// done
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment