[petsc-dev] sor smoothers

Jed Brown jedbrown at mcs.anl.gov
Mon Sep 9 10:43:53 CDT 2013


"Mark F. Adams" <mfadams at lbl.gov> writes:
>> PCMGSetResidual (if we continue to support it) should not modify the Mat
>
> I don't see how we can support this if we want to use MatResidual as
> Barry has described.  Certainly without adding a lot more ugly to the
> code.

PCMGResidualDefault would just call MatResidual instead MatMult, then VecAYPX.

I don't have a deep problem with removing it, but I think it's
unnecessary to remove it and is convenient if you aren't in control of
creating the coarse level matrices.  I'm thinking of defect correction
schemes where you want the PCMG to be able to evaluate a high-order
residual.  You could do that by making Amat and Pmat different,
implementing MatResidual on A, and propagating that through the levels,
but I think PCMGSetResidual is more convenient for many.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130909/ae131db8/attachment.sig>


More information about the petsc-dev mailing list