Actual source code: petscmat.h
petsc-3.13.6 2020-09-29
Report Typos and Errors

      1: !
      2: !
      3: !  Include file for Fortran use of the Mat package in PETSc
      4: !
      5: #if !defined (PETSCMATDEF_H)
      6: #define PETSCMATDEF_H

      8: #include "petsc/finclude/petscvec.h"

     10: #define Mat type(tMat)
     11: #define MatNullSpace type(tMatNullSpace)
     12: #define MatFDColoring type(tMatFDColoring)

     14: #define MatColoring PetscFortranAddr
     15: #define MatPartitioning PetscFortranAddr
     16: #define MatCoarsen PetscFortranAddr
     17: #define MatAIJIndices PetscFortranAddr
     18: #define MatType character*(80)
     19: #define MatSolverType character*(80)
     20: #define MatOption PetscEnum
     21: #define MatCreateSubMatrixOption PetscEnum
     22: #define MPChacoGlobalType PetscEnum
     23: #define MPChacoLocalType PetscEnum
     24: #define MPChacoEigenType PetscEnum
     25: #define MPPTScotchStragegyType PetscEnum
     26: #define MatAssemblyType PetscEnum
     27: #define MatFactorType PetscEnum
     28: #define MatFactorError PetscEnum
     29: #define MatFactorShiftType PetscEnum
     30: #define MatProductType PetscEnum
     31: #define MatProductAlgorithm character*(80)
     32: #define MatFactorSchurStatus PetscEnum
     33: #define MatOrderingType character*(80)
     34: #define MatSORType PetscEnum
     35: #define MatInfoType PetscEnum
     36: #define MatReuse PetscEnum
     37: #define MatOperation PetscEnum
     38: #define MatColoringType character*(80)
     39: #define MatInfo PetscLogDouble
     40: #define MatFactorInfo PetscReal
     41: #define MatDuplicateOption PetscEnum
     42: #define MatStructure PetscEnum
     43: #define MatPartitioningType character*(80)
     44: #define MatCoarsenType character*(80)
     45: #define MatCompositeType PetscEnum
     46: #define MatCompositeMergeType PetscEnum
     47: #define MatStencil PetscInt
     48: #define MatStencil_k 1
     49: #define MatStencil_j 2
     50: #define MatStencil_i 3
     51: #define MatStencil_c 4

     53: #define MATPARTITIONING_CURRENT 'current'
     54: #define MATPARTITIONING_PARMETIS 'parmetis'

     56: #define MATCOARSEN_MIS 'mis'

     58: #define MATCOLORINGNATURAL 'natural'
     59: #define MATCOLORINGSL      'sl'
     60: #define MATCOLORINGLF      'lf'
     61: #define MATCOLORINGID      'id'
     62: #define MATCOLORINGGREEDY  'greedy'
     63: #define MATCOLORINGJP      'jp'

     65: #define MATORDERINGNATURAL   'natural'
     66: #define MATORDERINGNATURAL_OR_ND 'natural_or_nd'
     67: #define MATORDERINGND        'nd'
     68: #define MATORDERING1WD       '1wd'
     69: #define MATORDERINGRCM       'rcm'
     70: #define MATORDERINGQMD       'qmd'
     71: #define MATORDERINGROWLENGTH 'rowlength'
     72: #define MATORDERINGWBM       'wbm'
     73: #define MATORDERINGSPECTRAL  'spectral'
     74: #define MATORDERINGAMD       'amd'
     75: !
     76: !  Matrix types
     77: !
     78: #define MATSAME            'same'
     79: #define MATMAIJ            'maij'
     80: #define MATSEQMAIJ         'seqmaij'
     81: #define MATMPIMAIJ         'mpimaij'
     82: #define MATIS              'is'
     83: #define MATAIJ             'aij'
     84: #define MATSEQAIJ          'seqaij'
     85: #define MATMPIAIJ          'mpiaij'
     86: #define MATAIJCRL          'aijcrl'
     87: #define MATSEQAIJCRL       'seqaijcrl'
     88: #define MATMPIAIJCRL       'mpiaijcrl'
     89: #define MATAIJCUSPARSE     'aijcusparse'
     90: #define MATSEQAIJCUSPARSE  'seqaijcusparse'
     91: #define MATMPIAIJCUSPARSE  'mpiaijcusparse'
     92: #define MATAIJVIENNACL     'aijviennacl'
     93: #define MATSEQAIJVIENNACL  'seqaijviennacl'
     94: #define MATMPIAIJVIENNACL  'mpiaijviennacl'
     95: #define MATAIJPERM         'aijperm'
     96: #define MATSEQAIJPERM      'seqaijperm'
     97: #define MATMPIAIJPERM      'mpiaijperm'
     98: #define MATAIJSELL         'aijsell'
     99: #define MATSEQAIJSELL      'seqaijsell'
    100: #define MATMPIAIJSELL      'mpiaijsell'
    101: #define MATAIJMKL          'aijmkl'
    102: #define MATSEQAIJMKL       'seqaijmkl'
    103: #define MATMPIAIJMKL       'mpiaijmkl'
    104: #define MATBAIJMKL         'baijmkl'
    105: #define MATSEQBAIJMKL      'seqbaijmkl'
    106: #define MATMPIBAIJMKL      'mpibaijmkl'
    107: #define MATSHELL           'shell'
    108: #define MATDENSE           'dense'
    109: #define MATSEQDENSE        'seqdense'
    110: #define MATSEQDENSECUDA    'seqdensecuda'
    111: #define MATMPIDENSE        'mpidense'
    112: #define MATELEMENTAL       'elemental'
    113: #define MATBAIJ            'baij'
    114: #define MATSEQBAIJ         'seqbaij'
    115: #define MATMPIBAIJ         'mpibaij'
    116: #define MATMPIADJ          'mpiadj'
    117: #define MATSBAIJ           'sbaij'
    118: #define MATSEQSBAIJ        'seqsbaij'
    119: #define MATMPISBAIJ        'mpisbaij'
    120: #define MATDAAD            'daad'
    121: #define MATMFFD            'mffd'
    122: #define MATNORMAL          'normal'
    123: #define MATNORMALHERMITIAN 'normalh'
    124: #define MATLRC             'lrc'
    125: #define MATSCATTER         'scatter'
    126: #define MATBLOCKMAT        'blockmat'
    127: #define MATCOMPOSITE       'composite'
    128: #define MATFFT             'fft'
    129: #define MATFFTW            'fftw'
    130: #define MATSEQCUFFT        'seqcufft'
    131: #define MATTRANSPOSEMAT    'transpose'
    132: #define MATSCHURCOMPLEMENT 'schurcomplement'
    133: #define MATPYTHON          'python'
    134: #define MATHYPRESTRUCT     'hyprestruct'
    135: #define MATHYPRESSTRUCT    'hypresstruct'
    136: #define MATSUBMATRIX       'submatrix'
    137: #define MATLOCALREF        'localref'
    138: #define MATNEST            'nest'
    139: #define MATPREALLOCATOR    'preallocator'
    140: #define MATSELL            'sell'
    141: #define MATSEQSELL         'seqsell'
    142: #define MATMPISELL         'mpisell'
    143: #define MATDUMMY           'dummy'
    144: #define MATLMVM            'lmvm'
    145: #define MATLMVMDFP         'lmvmdfp'
    146: #define MATLMVMBFGS        'lmvmbfgs'
    147: #define MATLMVMSR1         'lmvmsr1'
    148: #define MATLMVMBROYDEN     'lmvmbroyden'
    149: #define MATLMVMBADBROYDEN  'lmvmbadbroyden'
    150: #define MATLMVMSYMBROYDEN  'lmvmsymbroyden'
    151: #define MATLMVMSYMBADBROYDEN 'lmvmsymbadbroyden'
    152: #define MATLMVMDIAGBROYDEN 'lmvmdiagbroyden'

    154: !
    155: ! MatMFFDType values
    156: !
    157: #define MATMFFD_DS 'ds'
    158: #define MATMFFD_WP 'wp'

    160: !
    161: ! MatSolverTypes
    162: !
    163: #define MATSOLVERSUPERLU         'superlu'
    164: #define MATSOLVERSUPERLU_DIST    'superlu_dist'
    165: #define MATSOLVERSTRUMPACK       'strumpack'
    166: #define MATSOLVERUMFPACK         'umfpack'
    167: #define MATSOLVERCHOLMOD         'cholmod'
    168: #define MATSOLVERSPARSEELEMENTAL 'sparseelemental'
    169: #define MATSOLVERKLU             'klu'
    170: #define MATSOLVERELEMENTAL       'elemental'
    171: #define MATSOLVERESSL            'essl'
    172: #define MATSOLVERLUSOL           'lusol'
    173: #define MATSOLVERMUMPS           'mumps'
    174: #define MATSOLVERMKL_PARDISO     'mkl_pardiso'
    175: #define MATSOLVERMKL_CPARDISO    'mkl_cpardiso'
    176: #define MATSOLVERPASTIX          'pastix'
    177: #define MATSOLVERMATLAB          'matlab'
    178: #define MATSOLVERPETSC           'petsc'
    179: #define MATSOLVERBAS             'bas'
    180: #define MATSOLVERCUSPARSE        'cusparse'
    181: #define MATSOLVERCUDA            'cuda'

    183: !
    184: ! GPU Storage Formats for CUSPARSE
    185: !
    186: #define MatCUSPARSEStorageFormat PetscEnum
    187: #define MatCUSPARSEFormatOperation PetscEnum

    189: !
    190: ! sparsity reducing ordering for STRUMPACK
    191: !
    192: #define MatSTRUMPACKReordering PetscEnum

    194: #endif