[Libmesh-devel] SAME_PRECONDITIONER for PETSc 3.5?

2015-01-07 Thread David Knezevic
I notice that in PetscLinearSolver::solve we have: -- #if PETSC_RELEASE_LESS_THAN(3,5,0) ierr = KSPSetOperators(_ksp, submat, subprecond, this->same_preconditioner ? SAME_PRECONDITIONER : DIFFERENT_NONZERO_PATTERN); #else ierr = KSPSet

Re: [Libmesh-devel] SAME_PRECONDITIONER for PETSc 3.5?

2015-01-07 Thread Paul T. Bauman
Total guess: http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/KSP/KSPSetReusePreconditioner.html Sounds promising though. On Wed, Jan 7, 2015 at 11:16 PM, David Knezevic wrote: > I notice that in PetscLinearSolver::solve we have: > > -- > > #if PETSC_RELEASE_LESS

Re: [Libmesh-devel] SAME_PRECONDITIONER for PETSc 3.5?

2015-01-07 Thread Barry Smith
If you want to skip the new factorization you can simply call KSPSetReusePreconditioner() appropriate in the #else case below Barry > On Jan 7, 2015, at 10:16 PM, David Knezevic > wrote: > > I notice that in PetscLinearSolver::solve we have: > > -- > > #if PETSC