From 3e62028183007b90afdb380a5c3771f929559618 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Thu, 1 Jul 2010 19:27:46 +0000 Subject: [PATCH] add MPI detection git-svn-id: https://svn.dealii.org/trunk@21437 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/common/scripts/report_features.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/deal.II/common/scripts/report_features.cc b/deal.II/common/scripts/report_features.cc index 61d0cb2ce8..0bae78f8dd 100644 --- a/deal.II/common/scripts/report_features.cc +++ b/deal.II/common/scripts/report_features.cc @@ -21,6 +21,10 @@ extern "C" { } #endif +#if defined(DEAL_II_COMPILER_SUPPORTS_MPI) || defined(DEAL_II_USE_PETSC) +#include +#endif + #ifdef DEAL_II_USE_MUMPS # include # include @@ -30,6 +34,7 @@ extern "C" { # include #endif + int main() { #ifdef HAVE_LIBBLAS @@ -47,6 +52,19 @@ int main() << UMFPACK_SUBSUB_VERSION << std::endl; #endif +#if defined(DEAL_II_COMPILER_SUPPORTS_MPI) || defined(DEAL_II_USE_PETSC) +# ifdef OMPI_MAJOR_VERSION + std::cout << "dealii-feature: MPI=OpenMPI
" + << OMPI_MAJOR_VERSION << '.' + << OMPI_MINOR_VERSION << '.' + << OMPI_RELEASE_VERSION << std::endl; +# else + std::cout << "dealii-feature: MPI=" + << MPI__VERSION << '.' + << MPI_SUBVERSION << std::endl; +# endif +#endif + #ifdef DEAL_II_USE_MUMPS std::cout << "dealii-feature: MUMPS=yes" << std::endl; #endif -- 2.39.5