1: ! 2: ! 3: ! Include file for Fortran use of the KSP package in PETSc 4: ! 5: #if !defined (PETSCKSPDEF_H) 6: #define PETSCKSPDEF_H 8: #include "petsc/finclude/petscpc.h" 10: #define KSP type(tKSP) 11: #define KSPGuess type(tKSPGuess) 13: #define KSPType character*(80) 14: #define KSPGuessType character*(80) 15: #define KSPCGType PetscEnum 16: #define KSPFCDTruncationType PetscEnum 17: #define KSPConvergedReason PetscEnum 18: #define KSPNormType PetscEnum 19: #define KSPGMRESCGSRefinementType PetscEnum 20: #define MatSchurComplementAinvType PetscEnum 21: #define MatLMVMSymBroydenScaleType PetscEnum 23: ! 24: ! Various Krylov subspace methods 25: ! 26: #define KSPRICHARDSON 'richardson' 27: #define KSPCHEBYSHEV 'chebyshev' 28: #define KSPCG 'cg' 29: #define KSPGROPPCG 'groppcg' 30: #define KSPPIPECG 'pipecg' 31: #define KSPPIPECGRR 'pipecgrr' 32: #define KSPPIPELCG 'pipelcg' 33: #define KSPCGNE 'cgne' 34: #define KSPNASH 'nash' 35: #define KSPSTCG 'stcg' 36: #define KSPGLTR 'gltr' 37: #define KSPFCG 'fcg' 38: #define KSPPIPEFCG 'pipefcg' 39: #define KSPGMRES 'gmres' 40: #define KSPPIPEFGMRES 'pipefgmres' 41: #define KSPFGMRES 'fgmres' 42: #define KSPLGMRES 'lgmres' 43: #define KSPDGMRES 'dgmres' 44: #define KSPPGMRES 'pgmres' 45: #define KSPTCQMR 'tcqmr' 46: #define KSPBCGS 'bcgs' 47: #define KSPIBCGS 'ibcgs' 48: #define KSPFBCGS 'fbcgs' 49: #define KSPFBCGSR 'fbcgsr' 50: #define KSPBCGSL 'bcgsl' 51: #define KSPPIPEBCGS 'pipebcgs' 52: #define KSPCGS 'cgs' 53: #define KSPTFQMR 'tfqmr' 54: #define KSPCR 'cr' 55: #define KSPPIPECR 'pipecr' 56: #define KSPLSQR 'lsqr' 57: #define KSPPREONLY 'preonly' 58: #define KSPQCG 'qcg' 59: #define KSPBICG 'bicg' 60: #define KSPMINRES 'minres' 61: #define KSPSYMMLQ 'symmlq' 62: #define KSPLCD 'lcd' 63: #define KSPPYTHON 'python' 64: #define KSPGCR 'gcr' 65: #define KSPPIPEGCR 'pipegcr' 66: #define KSPTSIRM 'tsirm' 67: #define KSPCGLS 'cgls' 68: #define KSPFETIDP 'fetidp' 69: #define KSPHPDDM 'hpddm' 70: ! 71: ! Various Initial guesses for Krylov subspace methods 72: ! 73: #define KSPGUESSFISCHER 'fischer' 74: #define KSPGUESSPOD 'pod' 75: #endif