1: ! 2: ! 3: ! Include file for Fortran use of the PC (preconditioner) package in PETSc 4: ! 5: #if !defined (PETSCPCDEF_H) 6: #define PETSCPCDEF_H 8: #include "petsc/finclude/petscmat.h" 9: #include "petsc/finclude/petscdm.h" 11: #define PC type(tPC) 13: #define PCSide PetscEnum 14: #define PCJacobiType PetscEnum 15: #define PCASMType PetscEnum 16: #define PCGASMType PetscEnum 17: #define PCCompositeType PetscEnum 18: #define PCRichardsonConvergedReason PetscEnum 19: #define PCType character*(80) 20: #define PCFieldSplitSchurPreType PetscEnum 21: #define PCPARMSGlobalType PetscEnum 22: #define PCPARMSLocalType PetscEnum 23: #define PCFieldSplitSchurFactType PetscEnum 24: #define CoarseProblemType PetscEnum 25: #define PCGAMGType character*(80) 26: #define PCGAMGClassicalType character*(80) 27: #define PCGAMGLayoutType PetscEnum 28: ! 29: ! GAMG types 30: ! 31: #define PCGAMGAGG 'agg' 32: #define PCGAMGGEO 'geo' 33: #define PCGAMGCLASSICAL 'classical' 34: ! 35: ! GAMG classical types 36: ! 37: #define PCGAMGCLASSICALDIRECT 'direct' 38: #define PCGAMGCLASSICALSTANDARD 'standard' 40: ! 41: ! Various preconditioners 42: ! 43: #define PCNONE 'none' 44: #define PCJACOBI 'jacobi' 45: #define PCSOR 'sor' 46: #define PCLU 'lu' 47: #define PCQR 'qr' 48: #define PCSHELL 'shell' 49: #define PCBJACOBI 'bjacobi' 50: #define PCMG 'mg' 51: #define PCEISENSTAT 'eisenstat' 52: #define PCILU 'ilu' 53: #define PCICC 'icc' 54: #define PCASM 'asm' 55: #define PCGASM 'gasm' 56: #define PCKSP 'ksp' 57: #define PCCOMPOSITE 'composite' 58: #define PCREDUNDANT 'redundant' 59: #define PCSPAI 'spai' 60: #define PCNN 'nn' 61: #define PCCHOLESKY 'cholesky' 62: #define PCPBJACOBI 'pbjacobi' 63: #define PCVPBJACOBI 'vpbjacobi' 64: #define PCMAT 'mat' 65: #define PCHYPRE 'hypre' 66: #define PCPARMS 'parms' 67: #define PCFIELDSPLIT 'fieldsplit' 68: #define PCTFS 'tfs' 69: #define PCML 'ml' 70: #define PCGALERKIN 'galerkin' 71: #define PCEXOTIC 'exotic' 72: #define PCCP 'cp' 73: #define PCBFBT 'bfbt' 74: #define PCLSC 'lsc' 75: #define PCPYTHON 'python' 76: #define PCPFMG 'pfmg' 77: #define PCSYSPFMG 'syspfmg' 78: #define PCREDISTRIBUTE 'redistribute' 79: #define PCSVD 'svd' 80: #define PCGAMG 'gamg' 81: #define PCCHOWILUVIENNACL 'chowiluviennacl' 82: #define PCROWSCALINGVIENNACL 'rowscalingviennacl' 83: #define PCSAVIENNACL 'saviennacl' 84: #define PCBDDC 'bddc' 85: #define PCKACZMARZ 'kaczmarz' 86: #define PCTELESCOPE 'telescope' 87: #define PCPATCH 'patch' 88: #define PCLMVM 'lmvm' 89: #define PCHMG 'hmg' 90: #define PCDEFLATION 'deflation' 91: #define PCHPDDM 'hpddm' 92: #define PCHARA 'hara' 94: #define PCMGType PetscEnum 95: #define PCMGCycleType PetscEnum 96: #define PCMGGalerkinType PetscEnum 97: #define PCExoticType PetscEnum 98: #define PCDeflationSpaceType PetscEnum 99: #define PCBDDCInterfaceExtType PetscEnum 100: #define PCHPDDMCoarseCorrectionType PetscEnum 101: #define PCFailedReason PetscEnum 102: #endif