Skip to content

Commit

Permalink
bpls: works w/o MPI_Init
Browse files Browse the repository at this point in the history
  • Loading branch information
germasch committed Jun 3, 2019
1 parent 04b7b17 commit 1613f2a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions source/utils/bpls/bpls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1181,11 +1181,7 @@ int doList(const char *path)
if (hidden_attrs)
strcat(init_params, ";show_hidden_attrs");

#ifdef ADIOS2_HAVE_MPI
core::ADIOS adios(MPI_COMM_SELF, true, "C++");
#else
core::ADIOS adios(true, "C++");
#endif
core::IO &io = adios.DeclareIO("bpls");
core::Engine *fp = nullptr;
std::vector<std::string> engineList = getEnginesList(path);
Expand Down Expand Up @@ -2931,9 +2927,6 @@ char *mystrndup(const char *s, size_t n)

int main(int argc, char *argv[])
{
#ifdef ADIOS2_HAVE_MPI
MPI_Init(&argc, &argv);
#endif
int retval = 1;
try
{
Expand All @@ -2944,8 +2937,5 @@ int main(int argc, char *argv[])
std::cout << "\nbpls caught an exception\n";
std::cout << e.what() << std::endl;
}
#ifdef ADIOS2_HAVE_MPI
MPI_Finalize();
#endif
return retval;
}

0 comments on commit 1613f2a

Please sign in to comment.