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

disable test when MPI is missing.

[[Imported from SVN: r4919]]
parent 7a41113c
Branches
Tags
No related merge requests found
......@@ -3,7 +3,10 @@
#include "config.h"
#include <dune/common/mpihelper.hh>
#if HAVE_MPI
#include <dune/common/mpicollectivecommunication.hh>
#endif
#include <iostream>
int main(int argc, char** argv)
......@@ -11,6 +14,7 @@ int main(int argc, char** argv)
typedef Dune::MPIHelper Helper;
typedef Helper::MPICommunicator MPIComm;
#if HAVE_MPI
{
Helper& mpi = Helper::instance(argc, argv);
......@@ -44,5 +48,8 @@ int main(int argc, char** argv)
}
std::cout << "We are at the end!"<<std::endl;
#else
std::cout << "WARNING: test Dune::CollectiveCommunication<MPI_Comm> disabled because MPI not available! " << std::endl;
#endif
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment