On Wed, 11 Aug 2010 11:46:40 +1000, Joey Hegarty <Joey.Hegarty at al.com.au> 
wrote:
> Hi folks,
> 
> I'm looking for a way to update the coarse and levels preconditioners used 
> during the DMMG solve after PETSc has been initialized.
> 
> I can update some options dynamically like so:
> 
>       KSP ksp = DMMGGetKSP(dmmg);
>       KSPSetTolerances(ksp, ...);
>       KSPGMRESSetRestart(ksp, ...);
> 
> But I do not see a clear way of updating the coarse and levels preconditioner 
> types in a similar way.  Am I missing something obvious?  Apologise if this 
> has been asked before.

See PCMGGetSmoother() and PCMGGetCoarseSolve().

Jed

Reply via email to