From: Toby D. Young Date: Wed, 14 Jul 2010 15:59:41 +0000 (+0000) Subject: Make use of PETSc and SLEPc versions in deal.II report features. X-Git-Tag: v8.0.0~5817 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf211dad2248491e888f49169810487328d16aaa;p=dealii.git Make use of PETSc and SLEPc versions in deal.II report features. git-svn-id: https://svn.dealii.org/trunk@21503 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/common/scripts/report_features.cc b/deal.II/common/scripts/report_features.cc index 83cf798fb4..8e2e15dbd1 100644 --- a/deal.II/common/scripts/report_features.cc +++ b/deal.II/common/scripts/report_features.cc @@ -21,7 +21,7 @@ extern "C" { } #endif -#if defined(DEAL_II_COMPILER_SUPPORTS_MPI) || defined(DEAL_II_USE_PETSC) +#if defined(DEAL_II_COMPILER_SUPPORTS_MPI) #include #endif @@ -34,6 +34,10 @@ extern "C" { # include #endif +#ifdef DEAL_II_USE_PETSC +# include +#endif + #ifdef DEAL_II_USE_SLEPC # include #endif @@ -56,7 +60,7 @@ int main() << UMFPACK_SUBSUB_VERSION << std::endl; #endif -#if defined(DEAL_II_COMPILER_SUPPORTS_MPI) || defined(DEAL_II_USE_PETSC) +#if defined(DEAL_II_COMPILER_SUPPORTS_MPI) # ifdef OMPI_MAJOR_VERSION std::cout << "dealii-feature: MPI=OpenMPI
" << OMPI_MAJOR_VERSION << '.' @@ -86,6 +90,14 @@ int main() std::cout << "dealii-feature: MUMPS=yes" << std::endl; #endif +#ifdef DEAL_II_USE_PETSC + std::cout << "dealii-feature: PETSc=" + << PETSC_VERSION_MAJOR << '.' + << PETSC_VERSION_MINOR << '.' + << PETSC_VERSION_SUBMINOR << 'p' + << PETSC_VERSION_PATCH << std::endl; +#endif + #ifdef DEAL_II_USE_SLEPC std::cout << "dealii-feature: SLEPc=" << SLEPC_VERSION_MAJOR << '.'