[petsc-users] Dynamically changing coarse and levels DMMG preconditioners

Joey Hegarty Joey.Hegarty at al.com.au
Tue Aug 10 20:46:40 CDT 2010


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.

Cheers,
Joey


More information about the petsc-users mailing list