Commit 572da9b8 authored by Nick's avatar Nick
Browse files

Fix non-mpi build.

parent 679798eb
......@@ -2,8 +2,9 @@
#include <vector>
#include <adios2.h>
#ifdef ADIOS2_HAVE_MPI
#include <mpi.h>
#endif
int main(int argc, char *argv[])
{
......@@ -17,7 +18,12 @@ int main(int argc, char *argv[])
adios2::ADIOS ad;
try
{
ad = adios2::ADIOS("does_not_exist.xml", MPI_COMM_WORLD, adios2::DebugON);
#ifdef ADIOS2_HAVE_MPI
ad = adios2::ADIOS("does_not_exist.xml", MPI_COMM_WORLD,
adios2::DebugON);
#else
ad = adios2::ADIOS("does_not_exist.xml", adios2::DebugON);
#endif
}
catch (std::exception &e)
{
......@@ -25,7 +31,11 @@ int main(int argc, char *argv[])
{
std::cout << e.what() << "\n";
}
#ifdef ADIOS2_HAVE_MPI
ad = adios2::ADIOS(MPI_COMM_WORLD, adios2::DebugON);
#else
ad = adios2::ADIOS(adios2::DebugON);
#endif
}
#ifdef ADIOS2_HAVE_MPI
......
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