5.8.1 Creating Opaque Types: NF90_DEF_OPAQUE
Create an opaque type. Provide a size and a name.
Usage
function nf90_def_opaque(ncid, size, name, xtype)
integer, intent(in) :: ncid
integer, intent(in) :: size
character (len = *), intent(in) :: name
integer, intent(out) :: xtype
integer :: nf90_def_opaque
NCID
- The groupid where the type will be created. The type may be used
anywhere in the file, no matter what group it is in.
NAME
- The name for this type. Must be shorter than NF90_MAX_NAME.
SIZE
- The size of each opaque object.
TYPEIDP
- Pointer where the new typeid for this type is returned. Use this
typeid when defining variables of this type with NF90_DEF_VAR.
Errors
NF90_NOERR
- No error.
NF90_EBADTYPEID
- Bad typeid.
NF90_EBADFIELDID
- Bad fieldid.
NF90_EHDFERR
- An error was reported by the HDF5 layer.
Example