Debian Codegraph @

packages/seacas/libraries/ioss/src/catalyst_tests/Iocatalyst_TestDriverMain.C

raw
1 // Copyright(C) 1999-2020 National Technology & Engineering Solutions
2 // of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 // NTESS, the U.S. Government retains certain rights in this software.
4 //
5 // See packages/seacas/LICENSE for details
6
7 #include "iocatalyst_export.h"
8 #include <Ionit_Initializer.h>
9 #include <SEACASIoss_config.h>
10 #include <gtest/gtest.h>
11
12 #ifdef SEACAS_HAVE_MPI
13 #include <mpi.h>
14 #endif
15
16 int IOCATALYST_EXPORT main(int argc, char **argv)
17 {
18 #ifdef SEACAS_HAVE_MPI
19 MPI_Init(&argc, &argv);
20 #endif
21
22 Ioss::Init::Initializer io;
23 testing::InitGoogleTest(&argc, argv);
24 int errorCode = RUN_ALL_TESTS();
25
26 #ifdef SEACAS_HAVE_MPI
27 MPI_Finalize();
28 #endif
29
30 return errorCode;
31 }