--- trunk/finley/test/finley_UnitTests.cpp 2006/03/27 02:43:09 682 +++ temp/finley/test/finley_UnitTests.cpp 2008/01/11 07:45:26 1387 @@ -1,11 +1,39 @@ + +/* $Id$ */ + +/******************************************************* + * + * Copyright 2003-2007 by ACceSS MNRF + * Copyright 2007 by University of Queensland + * + * http://esscc.uq.edu.au + * Primary Business: Queensland, Australia + * Licensed under the Open Software License version 3.0 + * http://www.opensource.org/licenses/osl-3.0.php + * + *******************************************************/ + #include "MeshAdapterTestCase.h" -#include "CppUnitTest/TestRunner.h" +#include "tools/CppUnitTest/TestRunner.h" using namespace CppUnitTest; +extern "C"{ +#include "paso/Paso_MPI.h" +} + int main(int argc, char* argv[]) { + +#ifdef PASO_MPI + int status = MPI_Init(&argc, &argv); + if (status != MPI_SUCCESS) { + std::cerr << argv[0] << ": MPI_Init failed, exiting." << std::endl; + return status; + } +#endif + // // object which runs all of the tests TestRunner runner; @@ -15,6 +43,11 @@ // actually run the unit tests. runner.run (argc, argv); + +#ifdef PASO_MPI + MPI_Finalize(); +#endif + return 0; }