pFIO_Constants.F90 Source File


Files dependent on this one

sourcefile~~pfio_constants.f90~~AfferentGraph sourcefile~pfio_constants.f90 pFIO_Constants.F90 sourcefile~abstractdatareference.f90 AbstractDataReference.F90 sourcefile~abstractdatareference.f90->sourcefile~pfio_constants.f90 sourcefile~abstractserver.f90 AbstractServer.F90 sourcefile~abstractserver.f90->sourcefile~pfio_constants.f90 sourcefile~addwritedatacollectionmessage.f90 AddWriteDataCollectionMessage.F90 sourcefile~addwritedatacollectionmessage.f90->sourcefile~pfio_constants.f90 sourcefile~arrayreference.f90 ArrayReference.F90 sourcefile~arrayreference.f90->sourcefile~pfio_constants.f90 sourcefile~baseserver.f90 BaseServer.F90 sourcefile~baseserver.f90->sourcefile~pfio_constants.f90 sourcefile~coordinatevariable.f90 CoordinateVariable.F90 sourcefile~coordinatevariable.f90->sourcefile~pfio_constants.f90 sourcefile~extdatacollection.f90 ExtDataCollection.F90 sourcefile~extdatacollection.f90->sourcefile~pfio_constants.f90 sourcefile~filemetadata.f90 FileMetadata.F90 sourcefile~filemetadata.f90->sourcefile~pfio_constants.f90 sourcefile~historycollection.f90 HistoryCollection.F90 sourcefile~historycollection.f90->sourcefile~pfio_constants.f90 sourcefile~intarray.f90 IntArray.F90 sourcefile~intarray.f90->sourcefile~pfio_constants.f90 sourcefile~localmemreference.f90 LocalMemReference.F90 sourcefile~localmemreference.f90->sourcefile~pfio_constants.f90 sourcefile~mapl_historygridcomp.f90 MAPL_HistoryGridComp.F90 sourcefile~mapl_historygridcomp.f90->sourcefile~pfio_constants.f90 sourcefile~mpisocket.f90 MpiSocket.F90 sourcefile~mpisocket.f90->sourcefile~pfio_constants.f90 sourcefile~multicommserver.f90 MultiCommServer.F90 sourcefile~multicommserver.f90->sourcefile~pfio_constants.f90 sourcefile~multigroupserver.f90 MultiGroupServer.F90 sourcefile~multigroupserver.f90->sourcefile~pfio_constants.f90 sourcefile~multilayerserver.f90 MultiLayerServer.F90 sourcefile~multilayerserver.f90->sourcefile~pfio_constants.f90 sourcefile~netcdf4_fileformatter.f90 NetCDF4_FileFormatter.F90 sourcefile~netcdf4_fileformatter.f90->sourcefile~pfio_constants.f90 sourcefile~pfio.f90 pFIO.F90 sourcefile~pfio.f90->sourcefile~pfio_constants.f90 sourcefile~pfio_utilities.f90 pFIO_Utilities.F90 sourcefile~pfio_utilities.f90->sourcefile~pfio_constants.f90 sourcefile~pfio_writer.f90 pfio_writer.F90 sourcefile~pfio_writer.f90->sourcefile~pfio_constants.f90 sourcefile~serverthread.f90 ServerThread.F90 sourcefile~serverthread.f90->sourcefile~pfio_constants.f90 sourcefile~test_attribute.pf Test_Attribute.pf sourcefile~test_attribute.pf->sourcefile~pfio_constants.f90 sourcefile~test_coordinatevariable.pf Test_CoordinateVariable.pf sourcefile~test_coordinatevariable.pf->sourcefile~pfio_constants.f90 sourcefile~test_filemetadata.pf Test_FileMetadata.pf sourcefile~test_filemetadata.pf->sourcefile~pfio_constants.f90 sourcefile~test_localmemreference.pf Test_LocalMemReference.pf sourcefile~test_localmemreference.pf->sourcefile~pfio_constants.f90 sourcefile~test_netcdf4_fileformatter.pf Test_NetCDF4_FileFormatter.pf sourcefile~test_netcdf4_fileformatter.pf->sourcefile~pfio_constants.f90 sourcefile~test_serverthread.pf Test_ServerThread.pf sourcefile~test_serverthread.pf->sourcefile~pfio_constants.f90 sourcefile~test_unlimitedentity.pf Test_UnlimitedEntity.pf sourcefile~test_unlimitedentity.pf->sourcefile~pfio_constants.f90 sourcefile~test_variable.pf Test_Variable.pf sourcefile~test_variable.pf->sourcefile~pfio_constants.f90 sourcefile~unlimitedentity.f90 UnlimitedEntity.F90 sourcefile~unlimitedentity.f90->sourcefile~pfio_constants.f90 sourcefile~variable.f90 Variable.F90 sourcefile~variable.f90->sourcefile~pfio_constants.f90

Source Code

module pFIO_ConstantsMod
   implicit none
   private

   ! Type/kinds
   public :: pFIO_INT32, pFIO_INT64
   public :: pFIO_REAL32, pFIO_REAL64
   public :: pFIO_LOGICAL
   public :: pFIO_CHAR
   public :: pFIO_STRING
   public :: pFIO_UNSUPPORTED_TYPE

   ! Misc
   public :: pFIO_UNLIMITED

   ! Return codes
   public :: pFIO_SUCCESS
   public :: pFIO_DIMENSION_NOT_FOUND
   public :: pFIO_ATTRIBUTE_NOT_FOUND
   public :: pFIO_ILLEGAL_DIMENSION_INDEX
   public :: pFIO_ILLEGAL_DIMENSIONS_FORMAT
   public :: pFIO_UNDEFINED_DIMENSION

   ! IO modes
   public :: pFIO_WRITE
   public :: pFIO_READ
   public :: pFIO_CLOBBER
   public :: pFIO_NOCLOBBER
   public :: pFIO_s_tag
   public :: pFIO_m_w_tag
   public :: pFIO_w_m_tag

   public :: pFIO_DIMENSION_SEPARATOR

   enum, bind(C)
      enumerator :: pFIO_INT32, pFIO_INT64
      enumerator :: pFIO_REAL32, pFIO_REAL64
      enumerator :: pFIO_LOGICAL
      enumerator :: pFIO_CHAR
      enumerator :: pFIO_STRING
      enumerator :: pFIO_UNSUPPORTED_TYPE
   end enum


   enum, bind(C)
      enumerator :: pFIO_SUCCESS = 0
      enumerator :: pFIO_DIMENSION_NOT_FOUND
      enumerator :: pFIO_ATTRIBUTE_NOT_FOUND
      enumerator :: pFIO_ILLEGAL_DIMENSION_INDEX
      enumerator :: pFIO_ILLEGAL_DIMENSIONS_FORMAT
      enumerator :: pFIO_UNDEFINED_DIMENSION
   end enum
      
   character, parameter :: pFIO_DIMENSION_SEPARATOR = ','

   integer, parameter :: pFIO_UNLIMITED = 1 - huge(1)

   enum, bind(C)
      enumerator :: pFIO_READ
      enumerator :: pFIO_WRITE
   end enum

   enum, bind(C)
      enumerator :: pFIO_CLOBBER
      enumerator :: pFIO_NOCLOBBER
   end enum

   integer, parameter :: pFIO_s_tag   = 9999
   integer, parameter :: pFIO_m_w_tag = 8888
   integer, parameter :: pFIO_w_m_tag = 7777
   

end module pFIO_ConstantsMod