Date: 2022-08-02T03:13:15+00:00

Actual source code: petscviewer.h

      1: !
      2: !  Used by petscsysmod.F90 to create Fortran module file
      3: !
      4: #include "petsc/finclude/petscviewer.h"

      6:       type tPetscViewer
      7:         PetscFortranAddr:: v PETSC_FORTRAN_TYPE_INITIALIZE
      8:       end type tPetscViewer

     10:       PetscViewer, parameter :: PETSC_NULL_VIEWER = tPetscViewer(0)
     11: !
     12: !     The numbers used below should match those in
     13: !     petsc/private/fortranimpl.h
     14: !
     15:       PetscViewer, parameter :: PETSC_VIEWER_STDOUT_SELF  = tPetscViewer(9)
     16:       PetscViewer, parameter :: PETSC_VIEWER_DRAW_WORLD   = tPetscViewer(4)
     17:       PetscViewer, parameter :: PETSC_VIEWER_DRAW_SELF    = tPetscViewer(5)
     18:       PetscViewer, parameter :: PETSC_VIEWER_SOCKET_WORLD = tPetscViewer(6)
     19:       PetscViewer, parameter :: PETSC_VIEWER_SOCKET_SELF  = tPetscViewer(7)
     20:       PetscViewer, parameter :: PETSC_VIEWER_STDOUT_WORLD = tPetscViewer(8)
     21:       PetscViewer, parameter :: PETSC_VIEWER_STDERR_WORLD = tPetscViewer(10)
     22:       PetscViewer, parameter :: PETSC_VIEWER_STDERR_SELF  = tPetscViewer(11)
     23:       PetscViewer, parameter :: PETSC_VIEWER_BINARY_WORLD = tPetscViewer(12)
     24:       PetscViewer, parameter :: PETSC_VIEWER_BINARY_SELF  = tPetscViewer(13)
     25:       PetscViewer, parameter :: PETSC_VIEWER_MATLAB_WORLD = tPetscViewer(14)
     26:       PetscViewer, parameter :: PETSC_VIEWER_MATLAB_SELF  = tPetscViewer(15)

     28:       PetscViewer PETSC_VIEWER_STDOUT_
     29:       PetscViewer PETSC_VIEWER_DRAW_
     30:       external PETSC_VIEWER_STDOUT_
     31:       external PETSC_VIEWER_DRAW_
     32:       external PetscViewerAndFormatDestroy
     33: !
     34: !  Flags for binary I/O
     35: !
     36:       PetscEnum, parameter :: FILE_MODE_READ = 0
     37:       PetscEnum, parameter :: FILE_MODE_WRITE = 1
     38:       PetscEnum, parameter :: FILE_MODE_APPEND = 2
     39:       PetscEnum, parameter :: FILE_MODE_UPDATE = 3
     40:       PetscEnum, parameter :: FILE_MODE_APPEND_UPDATE = 4
     41: !
     42: !  PetscViewer formats
     43: !
     44:       PetscEnum, parameter :: PETSC_VIEWER_DEFAULT = 0
     45:       PetscEnum, parameter :: PETSC_VIEWER_ASCII_MATLAB = 1
     46:       PetscEnum, parameter :: PETSC_VIEWER_ASCII_MATHEMATICA = 2
     47:       PetscEnum, parameter :: PETSC_VIEWER_ASCII_IMPL = 3
     48:       PetscEnum, parameter :: PETSC_VIEWER_ASCII_INFO = 4
     49:       PetscEnum, parameter :: PETSC_VIEWER_ASCII_INFO_DETAIL = 5
     50:       PetscEnum, parameter :: PETSC_VIEWER_ASCII_COMMON = 6
     51:       PetscEnum, parameter :: PETSC_VIEWER_ASCII_SYMMODU = 7
     52:       PetscEnum, parameter :: PETSC_VIEWER_ASCII_INDEX = 8
     53:       PetscEnum, parameter :: PETSC_VIEWER_ASCII_DENSE = 9
     54:       PetscEnum, parameter :: PETSC_VIEWER_ASCII_MATRIXMARKET = 10
     55:       PetscEnum, parameter :: PETSC_VIEWER_ASCII_VTK = 11
     56:       PetscEnum, parameter :: PETSC_VIEWER_ASCII_VTK_CELL = 12
     57:       PetscEnum, parameter :: PETSC_VIEWER_ASCII_VTK_COORDS = 13
     58:       PetscEnum, parameter :: PETSC_VIEWER_ASCII_PCICE = 14
     59:       PetscEnum, parameter :: PETSC_VIEWER_ASCII_PYTHON = 15
     60:       PetscEnum, parameter :: PETSC_VIEWER_ASCII_FACTOR_INFO = 16
     61:       PetscEnum, parameter :: PETSC_VIEWER_ASCII_LATEX = 17
     62:       PetscEnum, parameter :: PETSC_VIEWER_ASCII_XML = 18
     63:       PetscEnum, parameter :: PETSC_VIEWER_ASCII_GLVIS = 19
     64:       PetscEnum, parameter :: PETSC_VIEWER_ASCII_CSV = 20
     65:       PetscEnum, parameter :: PETSC_VIEWER_DRAW_BASIC = 21
     66:       PetscEnum, parameter :: PETSC_VIEWER_DRAW_LG = 22
     67:       PetscEnum, parameter :: PETSC_VIEWER_DRAW_LG_XRANGE = 23
     68:       PetscEnum, parameter :: PETSC_VIEWER_DRAW_CONTOUR = 24
     69:       PetscEnum, parameter :: PETSC_VIEWER_DRAW_PORTS = 25
     70:       PetscEnum, parameter :: PETSC_VIEWER_VTK_VTS = 26
     71:       PetscEnum, parameter :: PETSC_VIEWER_VTK_VTR = 27
     72:       PetscEnum, parameter :: PETSC_VIEWER_VTK_VTU = 28
     73:       PetscEnum, parameter :: PETSC_VIEWER_BINARY_MATLAB = 29
     74:       PetscEnum, parameter :: PETSC_VIEWER_NATIVE = 30
     75:       PetscEnum, parameter :: PETSC_VIEWER_HDF5_PETSC = 31
     76:       PetscEnum, parameter :: PETSC_VIEWER_HDF5_VIZ = 32
     77:       PetscEnum, parameter :: PETSC_VIEWER_HDF5_XDMF = 33
     78:       PetscEnum, parameter :: PETSC_VIEWER_HDF5_MAT = 34
     79:       PetscEnum, parameter :: PETSC_VIEWER_NOFORMAT = 35
     80:       PetscEnum, parameter :: PETSC_VIEWER_LOAD_BALANCE = 36
     81:       PetscEnum, parameter :: PETSC_VIEWER_LOAD_ALL = 37

     83: #if defined(_WIN32) && defined(PETSC_USE_SHARED_LIBRARIES)
     84: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_NULL_VIEWER
     85: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_STDOUT_SELF
     86: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_DRAW_WORLD
     87: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_DRAW_SELF
     88: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_SOCKET_WORLD
     89: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_SOCKET_SELF
     90: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_STDOUT_WORLD
     91: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_STDERR_WORLD
     92: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_STDERR_SELF
     93: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_BINARY_WORLD
     94: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_BINARY_SELF
     95: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_MATLAB_WORLD
     96: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_MATLAB_SELF
     97: !DEC$ ATTRIBUTES DLLEXPORT::FILE_MODE_READ
     98: !DEC$ ATTRIBUTES DLLEXPORT::FILE_MODE_WRITE
     99: !DEC$ ATTRIBUTES DLLEXPORT::FILE_MODE_APPEND
    100: !DEC$ ATTRIBUTES DLLEXPORT::FILE_MODE_UPDATE
    101: !DEC$ ATTRIBUTES DLLEXPORT::FILE_MODE_APPEND_UPDATE
    102: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_DEFAULT
    103: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_ASCII_MATLAB
    104: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_ASCII_MATHEMATICA
    105: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_ASCII_IMPL
    106: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_ASCII_INFO
    107: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_ASCII_INFO_DETAIL
    108: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_ASCII_COMMON
    109: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_ASCII_SYMMODU
    110: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_ASCII_INDEX
    111: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_ASCII_DENSE
    112: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_ASCII_MATRIXMARKET
    113: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_ASCII_VTK
    114: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_ASCII_VTK_CELL
    115: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_ASCII_VTK_COORDS
    116: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_ASCII_PCICE
    117: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_ASCII_PYTHON
    118: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_ASCII_FACTOR_INFO
    119: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_ASCII_LATEX
    120: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_ASCII_XML
    121: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_ASCII_GLVIS
    122: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_DRAW_BASIC
    123: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_DRAW_LG
    124: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_DRAW_CONTOUR
    125: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_DRAW_PORTS
    126: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_VTK_VTS
    127: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_VTK_VTR
    128: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_VTK_VTU
    129: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_BINARY_MATLAB
    130: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_NATIVE
    131: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_HDF5_VIZ
    132: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_NOFORMAT
    133: !DEC$ ATTRIBUTES DLLEXPORT::PETSC_VIEWER_ALL
    134: #endif