Next: NF_DEF_GRP, Previous: NF_INQ_GRPNAME_FULL, Up: Groups
Given ncid, find the ncid of the parent group.
When used with the root group, this function returns the NF_ENOGRP error (since the root group has no parent.)
INTEGER FUNCTION NF_INQ_GRP_PARENT(INTEGER NCID, INTEGER PARENT_NCID)
NCIDPARENT_NCIDNF_NOERRNF_EBADIDNF_ENOGRPNF_ENOTNC4NF_ESTRICTNC3NF_EHDFERRThis example is from nf_test/ftst_groups.F.
C Check the parent ncid.
retval = nf_inq_grp_parent(grpids(1), grpid_in)
if (retval .ne. nf_noerr) call handle_err(retval)