5.7.2 Learn About an Opaque Type: NF_INQ_OPAQUE
Given a typeid, get the information about an opaque type.
Usage
INTEGER FUNCTION NF_INQ_OPAQUE(INTEGER NCID, INTEGER XTYPE,
CHARACTER*(*) NAME, INTEGER SIZEP)
NCID- The ncid for the group containing the opaque type.
XTYPE- The typeid for this opaque type, as returned by NF_DEF_COMPOUND, or
NF_INQ_VAR.
NAME- The name of the opaque type will be copied here. It will
be NF_MAX_NAME bytes or less.
SIZEP- The size of the opaque type will be copied here.
Errors
NF_NOERR- No error.
NF_EBADTYPEID- Bad typeid.
NF_EBADFIELDID- Bad fieldid.
NF_EHDFERR- An error was reported by the HDF5 layer.
Example
This example is from nf_test/ftst_vars3.F.
C Use nf_inq_opaque and make sure we get the same answers as we did
C with nf_inq_user_type.
retval = nf_inq_opaque(ncid, typeids(2), type_name, base_size)
if (retval .ne. nf_noerr) call handle_err(retval)