From d4daae91ff1c5014ad2f964da99d37bb0443de50 Mon Sep 17 00:00:00 2001 From: tradke Date: Fri, 29 Aug 2003 13:55:42 +0000 Subject: Also check for PETSC_VERSION_SUBMINOR to detect the right number of arguments to KSPSetInitialGuessNonzero(). This closes CactusElliptic/1594: EllPETSc passes too many arguments to PETSc. git-svn-id: http://svn.cactuscode.org/arrangements/CactusElliptic/EllPETSc/trunk@78 1d96b42b-98df-4a6a-9d84-1b24288d4588 --- src/petsc_confmetric_solver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/petsc_confmetric_solver.c b/src/petsc_confmetric_solver.c index bad9169..58b5a24 100644 --- a/src/petsc_confmetric_solver.c +++ b/src/petsc_confmetric_solver.c @@ -1010,7 +1010,7 @@ int petsc_confmetric_solver(cGH *GH, int *MetricPsiI, int MetricPsiISize, */ if (verbose) CCTK_INFO("KSPSetInitialGuess\n"); -#if PETSC_VERSION_MAJOR < 2 || (PETSC_VERSION_MAJOR == 2 && PETSC_VERSION_MINOR <= 0) +#if PETSC_VERSION_MAJOR < 2 || (PETSC_VERSION_MAJOR == 2 && PETSC_VERSION_MINOR <= 0 && PETSC_VERSION_SUBMINOR < 5) ierr = KSPSetInitialGuessNonzero(ksp); CHKERRQ(ierr); #else ierr = KSPSetInitialGuessNonzero(ksp, PETSC_TRUE); CHKERRQ(ierr); -- cgit v1.2.3