Actual source code: petscksp.h

petsc-3.14.6 2021-03-30
Report Typos and Errors
  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
 22: #define KSPHPDDMType PetscEnum

 24: !
 25: !  Various Krylov subspace methods
 26: !
 27: #define KSPRICHARDSON 'richardson'
 28: #define KSPCHEBYSHEV 'chebyshev'
 29: #define KSPCG 'cg'
 30: #define KSPGROPPCG 'groppcg'
 31: #define KSPPIPECG 'pipecg'
 32: #define KSPPIPECGRR 'pipecgrr'
 33: #define KSPPIPELCG 'pipelcg'
 34: #define KSPPIPECG2 'pipecg2'
 35: #define KSPCGNE 'cgne'
 36: #define KSPNASH 'nash'
 37: #define KSPSTCG 'stcg'
 38: #define KSPGLTR 'gltr'
 39: #define KSPFCG 'fcg'
 40: #define KSPPIPEFCG 'pipefcg'
 41: #define KSPGMRES 'gmres'
 42: #define KSPPIPEFGMRES 'pipefgmres'
 43: #define KSPFGMRES 'fgmres'
 44: #define KSPLGMRES 'lgmres'
 45: #define KSPDGMRES 'dgmres'
 46: #define KSPPGMRES 'pgmres'
 47: #define KSPTCQMR 'tcqmr'
 48: #define KSPBCGS 'bcgs'
 49: #define KSPIBCGS 'ibcgs'
 50: #define KSPFBCGS  'fbcgs'
 51: #define KSPFBCGSR 'fbcgsr'
 52: #define KSPBCGSL 'bcgsl'
 53: #define KSPPIPEBCGS 'pipebcgs'
 54: #define KSPCGS 'cgs'
 55: #define KSPTFQMR 'tfqmr'
 56: #define KSPCR 'cr'
 57: #define KSPPIPECR 'pipecr'
 58: #define KSPLSQR 'lsqr'
 59: #define KSPPREONLY 'preonly'
 60: #define KSPQCG 'qcg'
 61: #define KSPBICG 'bicg'
 62: #define KSPMINRES 'minres'
 63: #define KSPSYMMLQ 'symmlq'
 64: #define KSPLCD 'lcd'
 65: #define KSPPYTHON 'python'
 66: #define KSPGCR 'gcr'
 67: #define KSPPIPEGCR 'pipegcr'
 68: #define KSPTSIRM 'tsirm'
 69: #define KSPCGLS 'cgls'
 70: #define KSPFETIDP 'fetidp'
 71: #define KSPHPDDM 'hpddm'
 72: !
 73: !  Various Initial guesses for Krylov subspace methods
 74: !
 75: #define KSPGUESSFISCHER 'fischer'
 76: #define KSPGUESSPOD 'pod'
 77: #endif