]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Reject PETSc versions prior to 3.0.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 1 Nov 2012 13:26:19 +0000 (13:26 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 1 Nov 2012 13:26:19 +0000 (13:26 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@27286 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/modules/FindPETSC.cmake

index ff8e4aa6d134fe42e72559bf4c3512ebc7eef3bc..690a1a62906eff782ce827eb0b21ce6b8ccea7e3 100644 (file)
@@ -193,6 +193,12 @@ IF(PETSC_FOUND)
 
   SET(PETSC_VERSION "${PETSC_VERSION_MAJOR}.${PETSC_VERSION_MINOR}.${PETSC_VERSION_SUBMINOR}")
 
+  IF (${PETSC_VERSION_MAJOR} LESS 3)
+    MESSAGE (FATAL_ERROR "************************************************\n"
+                         "Only PETSc versions 3.0 and later are supported!\n"
+                         "************************************************\n")
+  ENDIF()
+
   MARK_AS_ADVANCED(
     PETSC_ARCH
     PETSC_DIR

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.