Date: 2021-03-03T22:25:31+00:00

Actual source code: petscviewer.h
petsc-3.14.5 2021-03-03
Report Typos and Errors

      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

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