Date: 2022-03-04T17:40:01+00:00

Actual source code: petscmat.h

      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 MATCOLORINGJP      'jp'
     59: #define MATCOLORINGPOWER   'power'
     60: #define MATCOLORINGNATURAL 'natural'
     61: #define MATCOLORINGSL      'sl'
     62: #define MATCOLORINGLF      'lf'
     63: #define MATCOLORINGID      'id'
     64: #define MATCOLORINGGREEDY  'greedy'

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

    169: !
    170: ! MatMFFDType values
    171: !
    172: #define MATMFFD_DS 'ds'
    173: #define MATMFFD_WP 'wp'

    175: !
    176: ! MatSolverTypes
    177: !
    178: #define MATSOLVERSUPERLU         'superlu'
    179: #define MATSOLVERSUPERLU_DIST    'superlu_dist'
    180: #define MATSOLVERSTRUMPACK       'strumpack'
    181: #define MATSOLVERUMFPACK         'umfpack'
    182: #define MATSOLVERCHOLMOD         'cholmod'
    183: #define MATSOLVERSPARSEELEMENTAL 'sparseelemental'
    184: #define MATSOLVERKLU             'klu'
    185: #define MATSOLVERELEMENTAL       'elemental'
    186: #define MATSOLVERSCALAPACK       'scalapack'
    187: #define MATSOLVERESSL            'essl'
    188: #define MATSOLVERLUSOL           'lusol'
    189: #define MATSOLVERMUMPS           'mumps'
    190: #define MATSOLVERMKL_PARDISO     'mkl_pardiso'
    191: #define MATSOLVERMKL_CPARDISO    'mkl_cpardiso'
    192: #define MATSOLVERPASTIX          'pastix'
    193: #define MATSOLVERMATLAB          'matlab'
    194: #define MATSOLVERPETSC           'petsc'
    195: #define MATSOLVERBAS             'bas'
    196: #define MATSOLVERCUSPARSE        'cusparse'
    197: #define MATSOLVERCUSPARSEBAND    'cusparseband'
    198: #define MATSOLVERCUDA            'cuda'
    199: #define MATSOLVERKOKKOS          'kokkos'
    200: #define MATSOLVERKOKKOSDEVICE    'kokkosdevice'
    201: #define MATSOLVERSPQR            'spqr'

    203: !
    204: ! GPU Storage Formats for CUSPARSE
    205: !
    206: #define MatCUSPARSEStorageFormat PetscEnum
    207: #define MatCUSPARSEFormatOperation PetscEnum

    209: !
    210: ! sparsity reducing ordering for STRUMPACK
    211: !
    212: #define MatSTRUMPACKReordering PetscEnum

    214: #endif