1: /* 2: Private data structure for Chebyshev Iteration 3: */ 8: typedef struct { 9: PetscReal emin,emax; /* store user provided estimates of extreme eigenvalues */ 10: KSP kspest; /* KSP used to estimate eigenvalues */ 11: PC pcnone; /* Dummy PC to drop in so PCSetFromOptions doesn't get called extra times */ 12: PetscReal tform[4]; /* transform from Krylov estimates to Chebyshev bounds */ 13: PetscBool estimate_current; 14: PetscInt eststeps; /* number of est steps in KSP used to estimate eigenvalues */ 15: PetscRandom random; 16: } KSP_Chebyshev; 18: #endif