]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make use of PETSc and SLEPc versions in deal.II report features.
authorToby D. Young <tyoung@ippt.pan.pl>
Wed, 14 Jul 2010 15:59:41 +0000 (15:59 +0000)
committerToby D. Young <tyoung@ippt.pan.pl>
Wed, 14 Jul 2010 15:59:41 +0000 (15:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@21503 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/common/scripts/report_features.cc

index 83cf798fb41f5c9d80f76c945255879a52aa70f8..8e2e15dbd15cc2da34ecc9666fb3f1c81d934ea7 100644 (file)
@@ -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 <mpi.h>
 #endif
 
@@ -34,6 +34,10 @@ extern "C" {
 #  include <dmumps_c.h>
 #endif 
 
+#ifdef DEAL_II_USE_PETSC
+#  include <petscversion.h>
+#endif
+
 #ifdef DEAL_II_USE_SLEPC
 #  include <slepcversion.h>
 #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<br>"
            << 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 << '.'

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.