KSPIDRSetRandom#

Sets the PetscRandom object used by the KSPIDR solver to initialize the shadow vectors.

Synopsis#

#include "petscksp.h" 
PetscErrorCode KSPIDRSetRandom(KSP ksp, PetscRandom rand)

Collective

Input Parameters#

  • ksp - the Krylov solver context

  • rand - the random number generator context

Note#

KSPIDR creates its own random number generator internally that can be accessed with KSPIDRGetRandom() and controlled from the options database with the options prefix of the KSP object.

See Also#

KSP: Linear System Solvers, KSPIDR, KSPIDRGetRandom(), PetscRandomCreate(), KSPIDRSetS(), KSPIDRSetCosine()

Level#

advanced

Location#

src/ksp/ksp/impls/idr/idr.c

Implementations#

KSPIDRSetRandom_IDR() in src/ksp/ksp/impls/idr/idr.c


Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages