Skip to content
Snippets Groups Projects
Commit 1636f44c authored by Robert Klöfkorn's avatar Robert Klöfkorn
Browse files

fix of FS#867.

[[Imported from SVN: r6373]]
parent 21305376
No related branches found
No related tags found
No related merge requests found
......@@ -6,11 +6,14 @@
#include <dune/common/mpihelper.hh>
#include <iostream>
int main(int argc, char** argv)
{
#ifdef MPIHELPER_PREINITIALZE
#if HAVE_MPI
MPI_Init(&argc, &argv);
#endif
#endif
typedef Dune::MPIHelper Helper;
......@@ -29,7 +32,9 @@ int main(int argc, char** argv)
comm= mpi.getCommunicator();
#ifdef MPIHELPER_PREINITIALZE
#if HAVE_MPI
MPI_Finalize();
#endif
#endif
}
std::cout << "We are at the end!"<<std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment