Re: [petsc-users] Computing residual norm in KSPFGMRESCycle()

2019-07-05 Thread Jed Brown via petsc-users
Dave, have you considered using GCR instead of FGMRES? It's a flexible method that is equivalent in many circumstances, but provides the residual and solution at each iteration without needing to "build" it. Dave Lee via petsc-users writes: > Hi Matt and Barry, > > thanks for the good ideas. >

Re: [petsc-users] Computing residual norm in KSPFGMRESCycle()

2019-07-04 Thread Smith, Barry F. via petsc-users
> On Jul 4, 2019, at 11:22 PM, Dave Lee wrote: > > Hi Matt and Barry, > > thanks for the good ideas. > > I wasn't aware of the function KSPSetConvergenceTest(), thanks for alerting > me to this Matt. Unfortunately I really do need to exclude a couple of > specific degrees of freedom from

Re: [petsc-users] Computing residual norm in KSPFGMRESCycle()

2019-07-04 Thread Smith, Barry F. via petsc-users
> On Jul 4, 2019, at 7:29 PM, Dave Lee via petsc-users > wrote: > > Hi PETSc, > > I have a problem for which I need to exclude certain degrees of freedom from > the evaluation of the norm as used to monitor the residual in FGMRES (don't > ask!). Therefore I would like to replace the

[petsc-users] Computing residual norm in KSPFGMRESCycle()

2019-07-04 Thread Dave Lee via petsc-users
Hi PETSc, I have a problem for which I need to exclude certain degrees of freedom from the evaluation of the norm as used to monitor the residual in FGMRES (don't ask!). Therefore I would like to replace the existing norm evaluation with my own version. Currently this is done within: