Skip to content
Snippets Groups Projects
Commit fa3207d1 authored by wenqing's avatar wenqing
Browse files

Added one more condition for PETSc versions

parent c98b8044
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ bool PETScLinearSolver::solve(const PETScVector &b, PETScVector &x)
PetscMemoryGetCurrentUsage(&mem1);
#endif
#if (PETSC_VERSION_MAJOR == 3) && (PETSC_VERSION_MINOR > 4)
#if (PETSC_VERSION_MAJOR == 3) && (PETSC_VERSION_MINOR > 4 || PETSC_VERSION_MAJOR > 3)
KSPSetOperators(_solver, _A.getRawMatrix(), _A.getRawMatrix());
#else
KSPSetOperators(_solver, _A.getRawMatrix(), _A.getRawMatrix(), DIFFERENT_NONZERO_PATTERN);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment