1: ! 2: ! 3: ! Include file for Fortran use of the KSP package in PETSc 4: ! 5: #if !defined (__PETSCKSPDEF_H) 8: #include petsc/finclude/petscpcdef.h 10: #if !defined(PETSC_USE_FORTRAN_DATATYPES) 11: #define KSP PetscFortranAddr 12: #define KSPFischerGuess PetscFortranAddr 13: #endif 15: #define KSPType character*(80) 16: #define KSPCGType PetscEnum 17: #define KSPFCGTruncationType PetscEnum 18: #define KSPConvergedReason PetscEnum 19: #define KSPNormType PetscEnum 20: #define KSPGMRESCGSRefinementType PetscEnum 21: #define MatSchurComplementAinvType PetscEnum 22: ! 23: ! Various Krylov subspace methods 24: ! 25: #define KSPRICHARDSON 'richardson' 26: #define KSPCHEBYSHEV 'chebyshev' 27: #define KSPCG 'cg' 28: #define KSPCGNE 'cgne' 29: #define KSPNASH 'nash' 30: #define KSPSTCG 'stcg' 31: #define KSPGLTR 'gltr' 32: #define KSPFCG 'fcg' 33: #define KSPGMRES 'gmres' 34: #define KSPFGMRES 'fgmres' 35: #define KSPLGMRES 'lgmres' 36: #define KSPDGMRES 'dgmres' 37: #define KSPPGMRES 'pgmres' 38: #define KSPTCQMR 'tcqmr' 39: #define KSPBCGS 'bcgs' 40: #define KSPIBCGS 'ibcgs' 41: #define KSPFBCGS 'fbcgs' 42: #define KSPFBCGSR 'fbcgsr' 43: #define KSPBCGSL 'bcgsl' 44: #define KSPCGS 'cgs' 45: #define KSPTFQMR 'tfqmr' 46: #define KSPCR 'cr' 47: #define KSPLSQR 'lsqr' 48: #define KSPPREONLY 'preonly' 49: #define KSPQCG 'qcg' 50: #define KSPBICG 'bicg' 51: #define KSPMINRES 'minres' 52: #define KSPSYMMLQ 'symmlq' 53: #define KSPLCD 'lcd' 54: #define KSPPYTHON 'python' 55: #define KSPGCR 'gcr' 56: #endif