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.
>
> 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
> 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
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: