1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* main.cpp
*
* Created on: Mar 7, 2018
* Author: Norbert Podhorszki, pnorbert@ornl.gov
*/
#include <iostream>
#include <stdexcept>
#include "utils/adios_reorganize/Reorganize.h"
#if ADIOS2_USE_MPI
#include <mpi.h>
#endif
int main(int argc, char *argv[])
{
#if ADIOS2_USE_MPI
int provided;
MPI_Init_thread(&argc, &argv, MPI_THREAD_MULTIPLE, &provided);
#endif
try
{
adios2::utils::Reorganize reorg(argc, argv);
reorg.Run();
}
catch (std::exception &e)
{
std::cout << e.what() << "\n";
}
#if ADIOS2_USE_MPI
MPI_Finalize();
#endif
}
|