Actual source code: petscksp.h

petsc-master 2020-07-10
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 KSPCGNE 'cgne'
 35: #define KSPNASH 'nash'
 36: #define KSPSTCG 'stcg'
 37: #define KSPGLTR 'gltr'
 38: #define KSPFCG 'fcg'
 39: #define KSPPIPEFCG 'pipefcg'
 40: #define KSPGMRES 'gmres'
 41: #define KSPPIPEFGMRES 'pipefgmres'
 42: #define KSPFGMRES 'fgmres'
 43: #define KSPLGMRES 'lgmres'
 44: #define KSPDGMRES 'dgmres'
 45: #define KSPPGMRES 'pgmres'
 46: #define KSPTCQMR 'tcqmr'
 47: #define KSPBCGS 'bcgs'
 48: #define KSPIBCGS 'ibcgs'
 49: #define KSPFBCGS  'fbcgs'
 50: #define KSPFBCGSR 'fbcgsr'
 51: #define KSPBCGSL 'bcgsl'
 52: #define KSPPIPEBCGS 'pipebcgs'
 53: #define KSPCGS 'cgs'
 54: #define KSPTFQMR 'tfqmr'
 55: #define KSPCR 'cr'
 56: #define KSPPIPECR 'pipecr'
 57: #define KSPLSQR 'lsqr'
 58: #define KSPPREONLY 'preonly'
 59: #define KSPQCG 'qcg'
 60: #define KSPBICG 'bicg'
 61: #define KSPMINRES 'minres'
 62: #define KSPSYMMLQ 'symmlq'
 63: #define KSPLCD 'lcd'
 64: #define KSPPYTHON 'python'
 65: #define KSPGCR 'gcr'
 66: #define KSPPIPEGCR 'pipegcr'
 67: #define KSPTSIRM 'tsirm'
 68: #define KSPCGLS 'cgls'
 69: #define KSPFETIDP 'fetidp'
 70: #define KSPHPDDM 'hpddm'
 71: !
 72: !  Various Initial guesses for Krylov subspace methods
 73: !
 74: #define KSPGUESSFISCHER 'fischer'
 75: #define KSPGUESSPOD 'pod'
 76: #endif