// $Id$
// Version: $Name$
//
-// Copyright (C) 2004, 2005, 2006, 2007 by the deal.II authors
+// Copyright (C) 2004, 2005, 2006, 2007, 2009 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
AssertThrow (ierr == 0, ExcPETScError(ierr));
#if ((PETSC_VERSION_MAJOR == 2) && \
- (PETSC_VERSION_MINOR < 3) && \
- (PETSC_VERSION_SUBMINOR < 3))
-
+ ((PETSC_VERSION_MINOR < 3) || \
+ ((PETSC_VERSION_MINOR == 3) && \
+ (PETSC_VERSION_SUBMINOR < 3))))
ierr = VecScatterBegin (static_cast<const Vec &>(v), vector,
INSERT_VALUES, SCATTER_FORWARD, ctx);
AssertThrow (ierr == 0, ExcPETScError(ierr));
// $Id$
// Version: $Name$
//
-// Copyright (C) 2004, 2005, 2006, 2008 by the deal.II authors
+// Copyright (C) 2004, 2005, 2006, 2008, 2009 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
MatrixBase::is_hermitian (const double tolerance)
{
PetscTruth truth;
- // First flush PETSc caches
+ // First flush PETSc caches
compress ();
-#if (PETSC_VERSION_MAJOR <= 2)
+#if (PETSC_VERSION_MAJOR <= 2)
+ // avoid warning about unused variables
+ (void) tolerance;
+
MatIsHermitian (matrix, &truth);
#else
MatIsHermitian (matrix, tolerance, &truth);
// $Id$
// Version: $Name$
//
-// Copyright (C) 2004, 2006, 2008 by the deal.II authors
+// Copyright (C) 2004, 2006, 2008, 2009 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
AssertThrow (ierr == 0, ExcPETScError(ierr));
// then set flags
-#if (PETSC_VERSION_MAJOR == 2) && (PETSC_VERSION_MINOR < 3) && (PETSC_VERSION_SUBMINOR < 1)
+#if ((PETSC_VERSION_MAJOR == 2) && \
+ ((PETSC_VERSION_MINOR < 3) || \
+ ((PETSC_VERSION_MINOR == 3) && \
+ (PETSC_VERSION_SUBMINOR < 1))))
PCICCSetLevels (pc, additional_data.levels);
#else
PCFactorSetLevels (pc, additional_data.levels);
AssertThrow (ierr == 0, ExcPETScError(ierr));
// then set flags
-#if (PETSC_VERSION_MAJOR == 2) && (PETSC_VERSION_MINOR < 3) && (PETSC_VERSION_SUBMINOR < 1)
+#if ((PETSC_VERSION_MAJOR == 2) && \
+ ((PETSC_VERSION_MINOR < 3) || \
+ ((PETSC_VERSION_MINOR == 3) && \
+ (PETSC_VERSION_SUBMINOR < 1))))
PCILUSetLevels (pc, additional_data.levels);
#else
PCFactorSetLevels (pc, additional_data.levels);
AssertThrow (ierr == 0, ExcPETScError(ierr));
// set flags as given
-#if (PETSC_VERSION_MAJOR == 2) && (PETSC_VERSION_MINOR >= 3) && (PETSC_VERSION_SUBMINOR >= 1)
+#if ((PETSC_VERSION_MAJOR == 2) && \
+ ((PETSC_VERSION_MINOR < 3) || \
+ ((PETSC_VERSION_MINOR == 3) && \
+ (PETSC_VERSION_SUBMINOR < 1))))
ierr = PCLUSetPivoting (pc, additional_data.pivoting);
#else
ierr = PCFactorSetPivoting (pc, additional_data.pivoting);